diff mbox series

HID: wiimote: remove h from printk format specifier

Message ID 20201215145928.1912641-1-trix@redhat.com
State Accepted
Commit 4d2b71634b5ad142617e430bc6ef659331a576d0
Headers show
Series HID: wiimote: remove h from printk format specifier | expand

Commit Message

Tom Rix Dec. 15, 2020, 2:59 p.m. UTC
From: Tom Rix <trix@redhat.com>

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

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/hid/hid-wiimote-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jiri Kosina Jan. 7, 2021, 9:15 a.m. UTC | #1
On Tue, 15 Dec 2020, trix@redhat.com wrote:

> From: Tom Rix <trix@redhat.com>

> 

> See Documentation/core-api/printk-formats.rst.

> h should no longer be used in the format specifier for printk.

> 

> Signed-off-by: Tom Rix <trix@redhat.com>


Applied this one too. Thanks Tom.

-- 
Jiri Kosina
SUSE Labs
diff mbox series

Patch

diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c
index 41012681cafd..4399d6c6afef 100644
--- a/drivers/hid/hid-wiimote-core.c
+++ b/drivers/hid/hid-wiimote-core.c
@@ -1482,7 +1482,7 @@  static void handler_return(struct wiimote_data *wdata, const __u8 *payload)
 		wdata->state.cmd_err = err;
 		wiimote_cmd_complete(wdata);
 	} else if (err) {
-		hid_warn(wdata->hdev, "Remote error %hhu on req %hhu\n", err,
+		hid_warn(wdata->hdev, "Remote error %u on req %u\n", err,
 									cmd);
 	}
 }