diff options
author | Mohan Srinivasan <srmohan@google.com> | 2017-08-14 23:11:55 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-08-14 23:11:55 +0000 |
commit | 82d5149778935c47f92c0023ac88df0b2da49963 (patch) | |
tree | 389d075fe9d3d46f18488db367d30163a302c3bc | |
parent | 48b1908405ef42a63fe61de60e49a91e1748d69c (diff) | |
parent | 949ef19568d3f58bb3c3b48265636de9ee546e28 (diff) | |
download | v4.4-82d5149778935c47f92c0023ac88df0b2da49963.tar.gz |
Use %zu to print resid (size_t). am: dd5826152c
am: 949ef19568
Change-Id: I95878af5b5a63a72dd9d5af065b9b54d6d24c0c0
-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 f148b937b4e5..c5ab3ddda456 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; } |