diff options
| author | Mohan Srinivasan <srmohan@google.com> | 2017-07-27 11:30:32 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-08-12 15:26:32 +0200 |
| commit | 3606e6abded9f3ccd0a394e2c62b051fa202f2b6 (patch) | |
| tree | 91af3bbe8678c97e535426520653cc75a593a4a3 | |
| parent | dc3912db444da652ff87975eafee8b863d4fcee3 (diff) | |
Use %zu to print resid (size_t).
Print resid (size_t) portably.
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
Change-Id: Ic5c9dc498bfeef2be21594ec5efd45a98a3c4b4d
(cherry picked from commit a1e4c795e1b6de6b34b8cbc75499d1675608c36b)
| -rw-r--r-- | drivers/input/misc/keychord.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c index f148b937b..c5ab3ddda 100644 --- a/drivers/input/misc/keychord.c +++ b/drivers/input/misc/keychord.c @@ -271,7 +271,7 @@ static ssize_t keychord_write(struct file *file, const char __user *buffer, while (resid > 0) { /* Is the entire keychord entry header present ? */ if (resid < sizeof(struct input_keychord)) { - pr_err("keychord: Insufficient bytes present for header %lu\n", + pr_err("keychord: Insufficient bytes present for header %zu\n", resid); goto err_unlock_return; } @@ -284,7 +284,7 @@ static ssize_t keychord_write(struct file *file, const char __user *buffer, key_bytes = keychord->count * sizeof(keychord->keycodes[0]); /* Do we have all the expected keycodes ? */ if (resid < key_bytes) { - pr_err("keychord: Insufficient bytes present for keycount %lu\n", + pr_err("keychord: Insufficient bytes present for keycount %zu\n", resid); goto err_unlock_return; } |
