git: e36ac668971c - stable/12 - Use the 't' modifier to print a ptrdiff_t.
John Baldwin
jhb at FreeBSD.org
Thu Dec 31 19:42:41 UTC 2020
The branch stable/12 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=e36ac668971c1bdf97e099bda88cb9cae3ea74c9
commit e36ac668971c1bdf97e099bda88cb9cae3ea74c9
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2020-12-16 00:11:30 +0000
Commit: John Baldwin <jhb at FreeBSD.org>
CommitDate: 2020-12-31 18:54:49 +0000
Use the 't' modifier to print a ptrdiff_t.
Obtained from: CheriBSD
Sponsored by: DARPA
(cherry picked from commit ce8395ecfda2c8e332a2adf9a9432c2e7f35ea81)
---
sys/compat/linuxkpi/common/include/linux/printk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/compat/linuxkpi/common/include/linux/printk.h b/sys/compat/linuxkpi/common/include/linux/printk.h
index 31802bdd2c99..e6510e9e9834 100644
--- a/sys/compat/linuxkpi/common/include/linux/printk.h
+++ b/sys/compat/linuxkpi/common/include/linux/printk.h
@@ -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:
More information about the dev-commits-src-all
mailing list