Use PRIu64 to print 64 bit dev_t.

This commit is contained in:
tsutsui 2009-01-11 13:03:00 +00:00
parent 8a2b8ba767
commit 07939f4755

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.203 2008/11/30 18:21:34 martin Exp $ */
/* $NetBSD: machdep.c,v 1.204 2009/01/11 13:03:00 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.203 2008/11/30 18:21:34 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.204 2009/01/11 13:03:00 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@ -869,15 +869,15 @@ dumpsys(void)
return;
}
if (dumplo <= 0) {
printf("\ndump to dev %u,%u not possible\n", major(dumpdev),
minor(dumpdev));
printf("\ndump to dev %" PRIu64 ",%" PRIu64 " not possible\n",
major(dumpdev), minor(dumpdev));
return;
}
dump = bdev->d_dump;
blkno = dumplo;
printf("\ndumping to dev %u,%u offset %ld\n", major(dumpdev),
minor(dumpdev), dumplo);
printf("\ndumping to dev %" PRIu64" ,%" PRIu64 " offset %ld\n",
major(dumpdev), minor(dumpdev), dumplo);
printf("dump ");