Use the 't' modifier to print a ptrdiff_t.
Reviewed by: imp Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27576
This commit is contained in:
parent
d3eae37553
commit
ce8395ecfd
@ -68,7 +68,7 @@ print_hex_dump(const char *level, const char *prefix_str,
|
||||
printf("[%p] ", buf);
|
||||
break;
|
||||
case DUMP_PREFIX_OFFSET:
|
||||
printf("[%p] ", (const char *)((const char *)buf -
|
||||
printf("[%#tx] ", ((const char *)buf -
|
||||
(const char *)buf_old));
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user