public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/7051] New: printf %n directive broken
@ 2008-11-25 16:50 fche at redhat dot com
  2008-12-02  9:47 ` [Bug runtime/7051] " prerna at linux dot vnet dot ibm dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: fche at redhat dot com @ 2008-11-25 16:50 UTC (permalink / raw)
  To: systemtap

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.

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

end of thread, other threads:[~2008-12-29 18:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-25 16:50 [Bug runtime/7051] New: printf %n directive broken fche at redhat dot com
2008-12-02  9:47 ` [Bug runtime/7051] " prerna at linux dot vnet dot ibm dot com
2008-12-02  9:49 ` prerna at linux dot vnet dot ibm dot com
2008-12-02 18:06 ` [Bug runtime/7051] remove broken printf %n directive support fche at redhat dot com
2008-12-05 19:12 ` ksebasti at redhat dot com
2008-12-29 19:23 ` prasad at linux dot vnet dot ibm dot com
2008-12-29 19:24 ` prasad at linux dot vnet dot ibm dot com

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).