[Bug translator/5189] New: Support a '*' dynamic field width specifier in printf
mmlnx at us dot ibm dot com
sourceware-bugzilla@sourceware.org
Tue Oct 16 20:10:00 GMT 2007
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.
More information about the Systemtap
mailing list