This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/13998] New: pretty-printing bitfields shouldn't use %c
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 19 Apr 2012 14:13:46 +0000
- Subject: [Bug translator/13998] New: pretty-printing bitfields shouldn't use %c
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13998
Bug #: 13998
Summary: pretty-printing bitfields shouldn't use %c
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap@sourceware.org
ReportedBy: fche@redhat.com
Classification: Unclassified
bitfields in structs are pretty-printed with formatting type %c, whereas most
likely it should be %u.
% stap -e 'probe kernel.function("audit_log_end") { println($ab->skb$) }' -v
-p2 | grep sprint
return sprintf("{.next=%p, .prev=%p, .tstamp={...}, .sk=%p, .dev=%p, .cb=[...],
._skb_refdst=%u, .sp=%p, .len=%u, .data_len=%u, .mac_len=%u, .hdr_len=%u,
<union>={...}, .priority=%u, .local_df='%c', .cloned='%c', .ip_summed='%c',
.nohdr='%c', .nfctinfo='%c', .pkt_type='%c', .fclone='%c', .ipvs_property='%c',
.peeked='%c', .nf_trace='%c', .protocol=%u, .destructor=%p, .nfct=%p,
.nfct_reasm=%p, .nf_bridge=%p, .skb_iif=%i, .tc_index=%u, .tc_verd=%u,
.rxhash=%u, .queue_mapping=%u, .ndisc_nodetype='%c', ...} [...]
local_df is a 1-bit bitfield in struct skbuff.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.