diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-11-25 15:59:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-11-25 15:27:06 -0800 |
commit | 2b14daba1d6976a078ba8ccdd1f932f2320061a8 (patch) | |
tree | c7fec3e845fc5f33b46efd2d4929c734d95ad727 /drivers/staging/greybus/bundle.c | |
parent | 4396c00b73d1ead961f09016aa9c731ea97c44ab (diff) |
greybus: bundle: use hexadecimal notation for class attribute
Use hexadecimal notation for class-attribute value.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/bundle.c')
-rw-r--r-- | drivers/staging/greybus/bundle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c index 7b539e9d7aea..61c9a6d68561 100644 --- a/drivers/staging/greybus/bundle.c +++ b/drivers/staging/greybus/bundle.c @@ -14,7 +14,7 @@ static ssize_t bundle_class_show(struct device *dev, { struct gb_bundle *bundle = to_gb_bundle(dev); - return sprintf(buf, "%d\n", bundle->class); + return sprintf(buf, "0x%02x\n", bundle->class); } static DEVICE_ATTR_RO(bundle_class); |