This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/7051] New: printf %n directive broken
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 25 Nov 2008 16:48:29 -0000
- Subject: [Bug runtime/7051] New: printf %n directive broken
- Reply-to: sourceware-bugzilla at sourceware dot org
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.