greybus: bundle: use hexadecimal notation for class attribute
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 25 Nov 2015 14:59:00 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 25 Nov 2015 23:27:06 +0000 (15:27 -0800)
Use hexadecimal notation for class-attribute value.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/bundle.c

index 7b539e9d7aeacbfdeef8f4e3983b33456d9824b5..61c9a6d68561a7a5086dc7594fa1f072fdf254f1 100644 (file)
@@ -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);