This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/5189] New: Support a '*' dynamic field width specifier in printf


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]