Use PRIu64 to print 64 bit dev_t (for now).
This commit is contained in:
parent
0ea8d0e57c
commit
b5ead86432
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.155 2009/01/03 06:36:58 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.156 2009/01/17 05:22:00 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
||||
|
@ -77,7 +77,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.155 2009/01/03 06:36:58 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.156 2009/01/17 05:22:00 tsutsui Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -530,12 +530,12 @@ dumpsys(void)
|
|||
if (dumpsize == 0)
|
||||
cpu_dumpconf();
|
||||
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;
|
||||
}
|
||||
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);
|
||||
|
||||
#if defined(DDB) || defined(PANICWAIT)
|
||||
printf("Do you want to dump memory? [y]");
|
||||
|
|
Loading…
Reference in New Issue