Skip to content

Commit 851f36e

Browse files
Qitao Xudavem330
authored andcommitted
net_sched: use %px to print skb address in trace_qdisc_dequeue()
Print format of skbaddr is changed to %px from %p, because we want to use skb address as a quick way to identify a packet. Note, trace ring buffer is only accessible to privileged users, it is safe to use a real kernel address here. Reviewed-by: Cong Wang <[email protected]> Signed-off-by: Qitao Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6587507 commit 851f36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/trace/events/qdisc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ TRACE_EVENT(qdisc_dequeue,
4141
__entry->txq_state = txq->state;
4242
),
4343

44-
TP_printk("dequeue ifindex=%d qdisc handle=0x%X parent=0x%X txq_state=0x%lX packets=%d skbaddr=%p",
44+
TP_printk("dequeue ifindex=%d qdisc handle=0x%X parent=0x%X txq_state=0x%lX packets=%d skbaddr=%px",
4545
__entry->ifindex, __entry->handle, __entry->parent,
4646
__entry->txq_state, __entry->packets, __entry->skbaddr )
4747
);

0 commit comments

Comments
 (0)