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:
John Baldwin 2020-12-16 00:11:30 +00:00
parent d3eae37553
commit ce8395ecfd

View File

@ -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: