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: _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"