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

Commit 59d53bc2 authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by David S. Miller
Browse files

net: caif: use correct format specifier



%u is the wrong format specifier for int.
size_t cannot be converted to int without possible
loss of information.

So leave the result as size_t and use %zu as format specifier.

cf. Documentation/printk-formats.txt

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent df7e88f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -185,8 +185,8 @@ static ssize_t print_frame(char *buf, size_t size, char *frm,
			/* Fast forward. */
			i = count - cut;
			len += snprintf((buf + len), (size - len),
					"--- %u bytes skipped ---\n",
					(int)(count - (cut * 2)));
					"--- %zu bytes skipped ---\n",
					count - (cut * 2));
		}

		if ((!(i % 10)) && i) {