Re: [PATCH] net/usb/kalmia: use %*phC to dump small buffers

2013-05-28 Thread Andy Shevchenko
On Tue, May 28, 2013 at 9:14 PM, Sergei Shtylyov wrote: > On 28-05-2013 13:56, Andy Shevchenko wrote: >> @@ -263,32 +260,24 @@ kalmia_rx_fixup(struct usbnet *dev, struct sk_buff >> *skb) >> sizeof(EXPECTED_UNKNOWN_HEADER_1)) || >> !memcmp( >>

Re: [PATCH] net/usb/kalmia: use %*phC to dump small buffers

2013-05-28 Thread Sergei Shtylyov
Hello. On 28-05-2013 13:56, Andy Shevchenko wrote: Instead of dereferencing pointer and put values on stack we could use nice %*phC specifier. Signed-off-by: Andy Shevchenko --- drivers/net/usb/kalmia.c | 46 -- 1 file changed, 16 insertions(+)

[PATCH] net/usb/kalmia: use %*phC to dump small buffers

2013-05-28 Thread Andy Shevchenko
Instead of dereferencing pointer and put values on stack we could use nice %*phC specifier. Signed-off-by: Andy Shevchenko --- drivers/net/usb/kalmia.c | 46 -- 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/drivers/net/usb/kalmia.c b/