Print resid (size_t) portably.
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
Change-Id: Ic5c9dc498bfeef2be21594ec5efd45a98a3c4b4d
(cherry picked from commit
a1e4c795e1b6de6b34b8cbc75499d1675608c36b)
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;
}
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;
}