Thread (10 messages) flat view 10 messages, 2 authors, 2015-08-28

Re: [PATCH net-next] net: FIB tracepoints

From: David Miller <davem@davemloft.net>
Date: 2015-08-28 05:17:54

From: David Ahern <redacted>
Date: Thu, 27 Aug 2015 22:12:01 -0700
perhaps an example helps:

swapper 0 [000] 406.447548: fib:fib_table_lookup: table 255 oif 0 iif
0 src 0.0.0.0 dst 2.1.1.2 tos 0 scope 0 flags 0

If src and dst are u32's then they print as either 0x%x or %d which is
not intuitive. I added support to perf for the following printk
formats with 3d199b5be53:
 ...

The following had better work:

	__u32 addr;
	printk("%pI4\n", &addr);

We do it everywhere in the networking code.

I don't know why you think it is required to use an array.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help