mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 10:42:45 +00:00
Use %zu when printing size_t.
MFC after: 1 month
This commit is contained in:
parent
d1d6559b08
commit
8dc79f22fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223925
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user