Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 2020 00:11:31 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368685 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202012160011.0BG0BVDi039551@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012160011.0BG0BVDi039551>