Skip to contentSkip to conversation

hwmon: remove h from printk format specifier

PATCH Applied [email protected] 2 participants 2 messages Dec 15, 2020 – Dec 16, 2020 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: remove h from printk format specifier

From: Tom Rix <[email protected]>

See Documentation/core-api/printk-formats.rst.
h should no longer be used in the format specifier for printk.

---
 drivers/hwmon/smsc47m1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/smsc47m1.c +1 -1
index b637836b58a1..37531b5c8254 100644
@@ -682,7 +682,7 @@ static int __init smsc47m1_handle_resources(unsigned short address,
 			/* Request the resources */
 			if (!devm_request_region(dev, start, len, DRVNAME)) {
 				dev_err(dev,
-					"Region 0x%hx-0x%hx already in use!\n",
+					"Region 0x%x-0x%x already in use!\n",
 					start, start + len);
 				return -EBUSY;
 			}
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 6 lines · On Tue, Dec 15, 2020 at 10:32:37AM -0800, [email protected] wrote:

From: Tom Rix <[email protected]>

See Documentation/core-api/printk-formats.rst.
h should no longer be used in the format specifier for printk.

Applied. For subsequent patches, please include the affected driver in the patch subject.

Thanks,
Guenter

Quoted 17 lines
---
 drivers/hwmon/smsc47m1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/smsc47m1.c +1 -1
index b637836b58a1..37531b5c8254 100644
@@ -682,7 +682,7 @@ static int __init smsc47m1_handle_resources(unsigned short address,
 			/* Request the resources */
 			if (!devm_request_region(dev, start, len, DRVNAME)) {
 				dev_err(dev,
-					"Region 0x%hx-0x%hx already in use!\n",
+					"Region 0x%x-0x%x already in use!\n",
 					start, start + len);
 				return -EBUSY;
 			}