This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/5189] New: Support a '*' dynamic field width specifier in printf
- From: "mmlnx at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 16 Oct 2007 20:10:14 -0000
- Subject: [Bug translator/5189] New: Support a '*' dynamic field width specifier in printf
- Reply-to: sourceware-bugzilla at sourceware dot org
Add support for dynamic field width specifiers (i.e., '*') in printf statements.
This would be especially useful for outputting the binary contents of a buffer
of arbitrary length.
For example, given a buffer address and size, the following printf would write
the binary contents of the buffer to the relay channel:
printf("%*b", buf_size, buf_addr)
This should also be supported for strings and any other data types where it
makes sense. My understanding is the runtime code already supports this, though
it has not been thoroughly tested. The stap language parser doesn't recognize
it yet.
--
Summary: Support a '*' dynamic field width specifier in printf
Product: systemtap
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mmlnx at us dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5189
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.