public inbox for ecos-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug 1001654] New: diag_printf truncates the values in %llu and %llx formats
@ 2012-08-16 13:27 bugzilla-daemon
  2015-06-25 15:36 ` [Bug 1001654] " bugzilla-daemon
  2015-06-25 15:37 ` bugzilla-daemon
  0 siblings, 2 replies; 4+ messages in thread
From: bugzilla-daemon @ 2012-08-16 13:27 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001654

           Summary: diag_printf truncates the values in %llu and %llx
                    formats
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: normal
         Component: Kernel
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: bernd.edlinger@hotmail.de
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


Created an attachment (id=1898)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1898)
proposed fix for this defect.

Hello,

these formats truncate the given 64 bit value to 32 bit.

example:

diag_printf("%llx %llu\n", -1LL, -1LL) => ffffffff 4294967295

the correct output would be (with the attached patch):

diag_printf("%llx %llu\n", -1LL, -1LL) => ffffffffffffffff 18446744073709551615

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 1001654] diag_printf truncates the values in %llu and %llx formats
  2012-08-16 13:27 [Bug 1001654] New: diag_printf truncates the values in %llu and %llx formats bugzilla-daemon
@ 2015-06-25 15:36 ` bugzilla-daemon
  2015-06-25 15:37 ` bugzilla-daemon
  1 sibling, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-06-25 15:36 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email, use the link below.

http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001654

Sergei Gavrikov <sergei.gavrikov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
                 CC|                            |sergei.gavrikov@gmail.com
     Ever confirmed|0                           |1

--- Comment #1 from Sergei Gavrikov <sergei.gavrikov@gmail.com> ---
Confirm the issue. Run in this today. When I've tried to submit own patch I
found this report.

-- 
You are receiving this mail because:
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 1001654] diag_printf truncates the values in %llu and %llx formats
  2012-08-16 13:27 [Bug 1001654] New: diag_printf truncates the values in %llu and %llx formats bugzilla-daemon
  2015-06-25 15:36 ` [Bug 1001654] " bugzilla-daemon
@ 2015-06-25 15:37 ` bugzilla-daemon
  1 sibling, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-06-25 15:37 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email, use the link below.

http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001654

Sergei Gavrikov <sergei.gavrikov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1898|0                           |1
        is obsolete|                            |

--- Comment #2 from Sergei Gavrikov <sergei.gavrikov@gmail.com> ---
Created attachment 2601
  --> http://bugs.ecos.sourceware.org/attachment.cgi?id=2601&action=edit
diag.cxx:_vprintf(): fix truncation values for %llx and %llu specifiers

Just in a case attach my own fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 1001654] New: diag_printf truncates the values in %llu and %llx formats
@ 2012-08-16 13:28 bugzilla-daemon
  0 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2012-08-16 13:28 UTC (permalink / raw)
  To: ecos-bugs

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001654

           Summary: diag_printf truncates the values in %llu and %llx
                    formats
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: normal
         Component: Kernel
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: bernd.edlinger@hotmail.de
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


Created an attachment (id=1898)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1898)
proposed fix for this defect.

Hello,

these formats truncate the given 64 bit value to 32 bit.

example:

diag_printf("%llx %llu\n", -1LL, -1LL) => ffffffff 4294967295

the correct output would be (with the attached patch):

diag_printf("%llx %llu\n", -1LL, -1LL) => ffffffffffffffff 18446744073709551615

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-25 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16 13:27 [Bug 1001654] New: diag_printf truncates the values in %llu and %llx formats bugzilla-daemon
2015-06-25 15:36 ` [Bug 1001654] " bugzilla-daemon
2015-06-25 15:37 ` bugzilla-daemon
2012-08-16 13:28 [Bug 1001654] New: " bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).