[Bug runtime/7051] New: printf %n directive broken

fche at redhat dot com sourceware-bugzilla@sourceware.org
Tue Nov 25 16:50:00 GMT 2008


ksebasti found several issues with this widget:

printf ("%n%4d", 0) prints 0x04 0x00 0x00 0x00 0x00
printf ("%n%n%n") prints junk
printf ("%n") prints junk

If we keep %n around at all, it needs to compose sensibly.
We could make it mean "total record length", so that the
previous three cases would print

printf ("%n%4d", 0) would print 0x05 0x00 0x00 0x00 0x00
printf ("%n%n%n") would print 0x03 0x03 0x03
printf ("%n") would print 0x01

-- 
           Summary: printf %n directive broken
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=7051

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



More information about the Systemtap mailing list