greybus: interface: Prefix hexadecimal values with '0x'
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 18 Dec 2015 09:34:27 +0000 (15:04 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 22 Dec 2015 02:27:16 +0000 (18:27 -0800)
commit2c7df74468506f390cd53c0af3457943e8076bd8
tree563a02625f5dd23c554fe5f6067c625346af33a6
parentccb58035915d8e915fbf39c389e95bb11fe9aff3
greybus: interface: Prefix hexadecimal values with '0x'

In order to clearly specify the base of values printed using sysfs
files, prefix hexadecimal values with '0x'. Also force the minimum width
(to be printed) for hexadecimal values to their sizes.

To make it more readable make the second argument to gb_interface_attr()
a proper string.

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/interface.c