dtrace: use %zu format specifier for data of size_t type

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2021-08-09 00:25:49 +03:00
parent ad560dee55
commit 66b8eced97
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}