svn commit: r368685 - head/sys/compat/linuxkpi/common/include/linux
John Baldwin
jhb at FreeBSD.org
Wed Dec 16 00:11:31 UTC 2020
Author: jhb
Date: Wed Dec 16 00:11:30 2020
New Revision: 368685
URL: https://svnweb.freebsd.org/changeset/base/368685
Log:
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
Modified:
head/sys/compat/linuxkpi/common/include/linux/printk.h
Modified: head/sys/compat/linuxkpi/common/include/linux/printk.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/printk.h Tue Dec 15 22:37:03 2020 (r368684)
+++ head/sys/compat/linuxkpi/common/include/linux/printk.h Wed Dec 16 00:11:30 2020 (r368685)
@@ -68,7 +68,7 @@ print_hex_dump(const char *level, const char *prefix_s
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:
More information about the svn-src-head
mailing list