Skip to contentSkip to conversation

ipack: print a hex number after a 0x prefix

PATCH New [email protected] 1 participant 1 message Oct 28, 2016 Industry pack subsystem (ipack)

lore
Share & tools
lore
#0 lore raw

PATCH 18/20 ipack: print a hex number after a 0x prefix

From: Uwe Kleine-König <[email protected]>
Subject: 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.

---

 drivers/ipack/ipack.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ipack/ipack.c renamed from drivers/ipack/ipack.c~ipack-print-a-hex-number-after-a-0x-prefix +1 -1
diff -puN drivers/ipack/ipack.c~ipack-print-a-hex-number-after-a-0x-prefix drivers/ipack/ipack.c
@@ -178,7 +178,7 @@ static ssize_t modalias_show(struct devi
 		       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);

_