This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1001510] Fix compiler warnings about mismatch between log()format string and argument values.
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: unassigned at bugs dot ecos dot sourceware dot org
- Date: Tue, 6 Mar 2012 19:32:10 +0000
- Subject: [Bug 1001510] Fix compiler warnings about mismatch between log()format string and argument values.
- Auto-submitted: auto-generated
- References: <bug-1001510-777@http.bugs.ecos.sourceware.org/>
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001510
Grant Edwards <grant.b.edwards@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |NOTABUG
--- Comment #3 from Grant Edwards <grant.b.edwards@gmail.com> 2012-03-06 19:32:08 GMT ---
You're right. Both fields in struct timeval are signed. tv_sec is 'int' and
tv_usec is 'long int'. Using the old format I don't get any compiler warnings
I think "%d.%ld" is probably more correct, but it's moot on 32-bit
architectures. Either way the output is somewhat misleading -- "%d.%06ld" is
probably the best answer.
I'm going to leave things the way they are.
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.