e100: dump small buffers via %*phC
Subsystems (3)
PATCH 1/1 e100: dump small buffers via %*phC
There is nice specifier in kernel that allows us to print small buffers easily.
--- drivers/net/ethernet/intel/e100.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
drivers/net/ethernet/intel/e100.c +6 -9
@@ -1175,15 +1175,12 @@ static int e100_configure(struct nic *nic, struct cb *cb, struct sk_buff *skb) config->rx_discard_short_frames =0x0 ;/* 1=discard, 0=save */ } -netif_printk (nic, hw,KERN_DEBUG , nic->netdev, -"[00-07]=%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\n" , - c[0 ], c[1 ], c[2 ], c[3 ], c[4 ], c[5 ], c[6 ], c[7 ]); -netif_printk (nic, hw,KERN_DEBUG , nic->netdev, -"[08-15]=%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\n" , - c[8 ], c[9 ], c[10 ], c[11 ], c[12 ], c[13 ], c[14 ], c[15 ]); -netif_printk (nic, hw,KERN_DEBUG , nic->netdev, -"[16-23]=%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\n" , - c[16 ], c[17 ], c[18 ], c[19 ], c[20 ], c[21 ], c[22 ], c[23 ]); +netif_printk (nic, hw,KERN_DEBUG , nic->netdev,"[00-07]=%8phC\n" , + c +0 ); +netif_printk (nic, hw,KERN_DEBUG , nic->netdev,"[08-15]=%8phC\n" , + c +8 ); +netif_printk (nic, hw,KERN_DEBUG , nic->netdev,"[16-23]=%8phC\n" , + c +16 );return 0 ; }
Signature · 1 line
1.8.3.2
Quoted 7 lines · Andy Shevchenko
There is nice specifier in kernel that allows us to print small buffers easily.
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/net/ethernet/intel/e100.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
Thanks, I appreciate you sending this again...
I already have this patch queued up for upstream and it will be in the next series I send.
Quoted 9 lines · Jeff Kirsher
Quoted 7 lines · Andy Shevchenko
There is nice specifier in kernel that allows us to print small buffers easily.
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/net/ethernet/intel/e100.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
Quoted 4 lines
Thanks, I appreciate you sending this again...
I already have this patch queued up for upstream and it will be in the next series I send.
Oh, sorry for resending.
I cleared up my queue after rebasing to recent linux-next, where the patch is not appeared yet, that's why duplicate was created.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 12 lines · Andy Shevchenko
Quoted 11 lines · Jeff Kirsher
Quoted 7 lines · Andy Shevchenko
There is nice specifier in kernel that allows us to print small buffers easily.
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/net/ethernet/intel/e100.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)Thanks, I appreciate you sending this again...
Quoted 7 lines
Quoted 1 line
I already have this patch queued up for upstream and it will be in
the
Quoted 1 line
next series I send.
Oh, sorry for resending.
I cleared up my queue after rebasing to recent linux-next, where the patch is not appeared yet, that's why duplicate was created.
No problem, sorry for the delay in getting it upstream and feel free to ping me next time.