git: 66b8eced9723 - main - dtrace: use %zu format specifier for data of size_t type

Konstantin Belousov kib at FreeBSD.org
Sun Aug 8 21:27:12 UTC 2021


The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=66b8eced9723b5b1fa5b05b286a9312a4d32237b

commit 66b8eced9723b5b1fa5b05b286a9312a4d32237b
Author:     Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-08-08 21:25:49 +0000
Commit:     Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-08-08 21:27:04 +0000

    dtrace: use %zu format specifier for data of size_t type
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c | 2 +-
 sys/cddl/dev/dtrace/dtrace_load.c                       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
index ca6fa5481856..a59edb05e2b6 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
@@ -17106,7 +17106,7 @@ dtrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
 	    offsetof(dtrace_probe_t, dtpr_prevname));
 
 	if (dtrace_retain_max < 1) {
-		cmn_err(CE_WARN, "illegal value (%lu) for dtrace_retain_max; "
+		cmn_err(CE_WARN, "illegal value (%zu) for dtrace_retain_max; "
 		    "setting to 1", dtrace_retain_max);
 		dtrace_retain_max = 1;
 	}
diff --git a/sys/cddl/dev/dtrace/dtrace_load.c b/sys/cddl/dev/dtrace/dtrace_load.c
index 029af60d1cd8..232d7df6999c 100644
--- a/sys/cddl/dev/dtrace/dtrace_load.c
+++ b/sys/cddl/dev/dtrace/dtrace_load.c
@@ -119,7 +119,7 @@ dtrace_load(void *dummy)
 	    offsetof(dtrace_probe_t, dtpr_prevname));
 
 	if (dtrace_retain_max < 1) {
-		cmn_err(CE_WARN, "illegal value (%lu) for dtrace_retain_max; "
+		cmn_err(CE_WARN, "illegal value (%zu) for dtrace_retain_max; "
 		    "setting to 1", dtrace_retain_max);
 		dtrace_retain_max = 1;
 	}


More information about the dev-commits-src-all mailing list