Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df900d06 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

Revert "Use %zu to print resid (size_t)."

This reverts commit a1e4c795.

Remove keychord driver, replaced in user space by
https://android-review.googlesource.com/c/677629

.

Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Bug: 64114943
Change-Id: I1e2430474a857a53091a5a4c39e160f0ba7ecf25
parent cbda3ea2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 %zu\n",
			pr_err("keychord: Insufficient bytes present for header %lu\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 %zu\n",
			pr_err("keychord: Insufficient bytes present for keycount %lu\n",
			       resid);
			goto err_unlock_return;
		}