From: Johan Hovold Date: Wed, 25 Nov 2015 14:59:00 +0000 (+0100) Subject: greybus: bundle: use hexadecimal notation for class attribute X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b14daba1d6976a078ba8ccdd1f932f2320061a8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: bundle: use hexadecimal notation for class attribute Use hexadecimal notation for class-attribute value. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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);