path: root/drivers/ipack
diff options
authorUwe Kleine-König <>2016-10-27 17:47:07 -0700
committerLinus Torvalds <>2016-10-27 18:43:43 -0700
commit9105585d13bd2946f0eb2a664e32ec9a9b23bf1b (patch)
tree32c0ec47f8c41282a3c127e2aff2a11d905374dc /drivers/ipack
parentee52c44dee63ff2686a7b0d98fff7c80852ac022 (diff)
ipack: print a hex number after a 0x prefix
It makes the result hard to interpret correctly if a base 10 number is prefixed by 0x. So change to a hex number. Link: Signed-off-by: Uwe Kleine-König <> Cc: Samuel Iglesias Gonsalvez <> Cc: Jens Taprogge <> Cc: Greg Kroah-Hartman <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'drivers/ipack')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ipack/ipack.c b/drivers/ipack/ipack.c
index c0e7b624ce54..12102448fddd 100644
--- a/drivers/ipack/ipack.c
+++ b/drivers/ipack/ipack.c
@@ -178,7 +178,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
idev->id_vendor, idev->id_device);
-ipack_device_attr(id_format, "0x%hhu\n");
+ipack_device_attr(id_format, "0x%hhx\n");
static DEVICE_ATTR_RO(id);
static DEVICE_ATTR_RO(id_device);