mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-03 15:55:53 +00:00
hex_dump: Convert argument to long
To eliminate format problem | util.c:60:10: error: format ‘%lx’ expects argument of | type ‘long unsigned int’, but argument 2 has type | ‘unsigned char *’ [-Werror=format] Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
2
util.c
2
util.c
@@ -56,7 +56,7 @@ void hex_dump(void *addr, unsigned long len)
|
|||||||
|
|
||||||
for (i = 0; i < len; i += 8) {
|
for (i = 0; i < len; i += 8) {
|
||||||
printk("%08lx: %02x %02x %02x %02x %02x %02x %02x %02x\n",
|
printk("%08lx: %02x %02x %02x %02x %02x %02x %02x %02x\n",
|
||||||
p, p[i+0], p[i+1], p[i+2], p[i+3],
|
(long)p, p[i+0], p[i+1], p[i+2], p[i+3],
|
||||||
p[i+4], p[i+5], p[i+6], p[i+7]);
|
p[i+4], p[i+5], p[i+6], p[i+7]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user