1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Use %zu when printing size_t.

MFC after:	1 month
This commit is contained in:
Xin LI 2011-07-11 05:50:24 +00:00
parent d1d6559b08
commit 8dc79f22fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223925

View File

@ -120,7 +120,7 @@ sysctlgatherstruct(void *addr, size_t size, struct scgs_vector *vecarr)
if (rv == -1)
err(1, "sysctlbyname: %s", xp->sysctl);
if (tsiz != xp->size)
errx(1, "%s size mismatch (expected %d, got %d)",
errx(1, "%s size mismatch (expected %zu, got %zu)",
xp->sysctl, xp->size, tsiz);
}
}
@ -199,7 +199,7 @@ kget(int idx, void *addr, size_t size)
err(1, "sysctlbyname: %s", sym2sysctl[idx]);
if (tsiz != size)
errx(1, "%s size mismatch "
"(expected %d, got %d)",
"(expected %zu, got %zu)",
sym2sysctl[idx], size, tsiz);
break;
}