greybus: don't use %h and %hh for printing short and char variables
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 4 Dec 2015 16:00:09 +0000 (21:30 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 5 Dec 2015 00:23:36 +0000 (16:23 -0800)
commit2f3db927cdf7627aa5359ff46c80ab72f7971980
tree62cb682c89f4981053412bc149b9fef27750f50a
parent4aac6c5a144921448237d2a2bff50d4fba0b0faf
greybus: don't use %h and %hh for printing short and char variables

Because the width of our fields is already known, we can use %0Nx (for
hex) to print N bytes and %u (for unsigned decimal), instead of using %h
and %hh, which isn't that readable.

This patch makes following changes:
- s/%hx/%04x
- s/%04hx/%04x
- s/%hhx/%02x
- s/%02hhx/%02x
- s/%hhu/%u
- s/%hu/%u
- s/%x/%02x for u8 value (only at a single place)

Suggested-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/bundle.c
drivers/staging/greybus/connection.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/firmware.c
drivers/staging/greybus/hid.c
drivers/staging/greybus/loopback.c
drivers/staging/greybus/manifest.c
drivers/staging/greybus/operation.c
drivers/staging/greybus/protocol.c
drivers/staging/greybus/svc.c