use PRIu64 format to printf major() and minor() values
This commit is contained in:
parent
da1cef7418
commit
cc49ee3c57
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.57 2008/11/30 18:21:36 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.58 2009/01/12 08:22:37 cegger Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -153,7 +153,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.57 2008/11/30 18:21:36 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.58 2009/01/12 08:22:37 cegger Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -687,8 +687,8 @@ 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;
|
||||
}
|
||||
savectx(&dumppcb);
|
||||
@ -699,8 +699,8 @@ dumpsys(void)
|
||||
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);
|
||||
|
||||
/*
|
||||
* Prepare the dump header, including MMU state.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.189 2008/11/30 18:21:36 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.190 2009/01/12 08:25:32 cegger Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -78,7 +78,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.189 2008/11/30 18:21:36 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.190 2009/01/12 08:25:32 cegger Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -596,8 +596,8 @@ 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;
|
||||
}
|
||||
savectx(&dumppcb);
|
||||
@ -608,8 +608,8 @@ dumpsys(void)
|
||||
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);
|
||||
|
||||
/*
|
||||
* Prepare the dump header, including MMU state.
|
||||
|
Loading…
Reference in New Issue
Block a user