Fix format specifier for pointer subtraction
Resolves the following compiler error:
keyctl_watch.c: In function 'consumer':
keyctl_watch.c:177:61: error: format '%zx' expects argument of type 'size_t', but argument 3 has type 'int' [-Werror=format=]
177 | fprintf(stderr, "NOTIFY[%03zx]: ty=%06x sy=%02x i=%08x\n",
| ~~~~^
| |
| long unsigned int
| %03x
178 | p - buffer, n.n.type, n.n.subtype, n.n.info);
| ~~~~~~~~~~
| |
| int
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20230301134250.301819-1-hi@alyssa.is/
1 file changed