mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
- Fix compilation of the subr_unit.c user space test program.
- Use %zu for size_t in a few format strings.
This commit is contained in:
parent
096dbab98c
commit
24e8eaf191
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209256
@ -153,6 +153,7 @@ mtx_assert(struct mtx *mp, int flag)
|
||||
}
|
||||
|
||||
#define CTASSERT(foo)
|
||||
#define WITNESS_WARN(flags, lock, fmt, ...) (void)0
|
||||
|
||||
#endif /* USERLAND */
|
||||
|
||||
@ -825,9 +826,9 @@ main(int argc __unused, const char **argv __unused)
|
||||
|
||||
memset(a, 0, sizeof a);
|
||||
|
||||
fprintf(stderr, "sizeof(struct unr) %d\n", sizeof (struct unr));
|
||||
fprintf(stderr, "sizeof(struct unrb) %d\n", sizeof (struct unrb));
|
||||
fprintf(stderr, "sizeof(struct unrhdr) %d\n", sizeof (struct unrhdr));
|
||||
fprintf(stderr, "sizeof(struct unr) %zu\n", sizeof(struct unr));
|
||||
fprintf(stderr, "sizeof(struct unrb) %zu\n", sizeof(struct unrb));
|
||||
fprintf(stderr, "sizeof(struct unrhdr) %zu\n", sizeof(struct unrhdr));
|
||||
fprintf(stderr, "NBITS %d\n", NBITS);
|
||||
x = 1;
|
||||
for (m = 0; m < NN * 100; m++) {
|
||||
|
Loading…
Reference in New Issue
Block a user