Hmm, on a.out platforms we have
size_t == unsigned int on elf platforms we have size_t == unsigned long int So use %ld when printing and cast md->md_size to long.
This commit is contained in:
parent
5554debffd
commit
a5480e24b4
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: md_hooks.c,v 1.18 2001/09/09 15:15:14 reinoud Exp $ */
|
||||
/* $NetBSD: md_hooks.c,v 1.19 2001/09/24 17:00:52 rearnsha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Gordon W. Ross
|
||||
@ -83,7 +83,7 @@ md_attach_hook(unit, md)
|
||||
bootmd = md;
|
||||
}
|
||||
#endif /* MINIROOTSIZE */
|
||||
printf("md%d: allocated %dK (%d blocks)\n", unit, md->md_size / 1024, md->md_size / DEV_BSIZE);
|
||||
printf("md%d: allocated %ldK (%ld blocks)\n", unit, (long)md->md_size / 1024, (long)md->md_size / DEV_BSIZE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user