fix dev_t printf formats.

This commit is contained in:
christos 2009-01-11 22:37:50 +00:00
parent bf1857180f
commit af8f3048ca

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.171 2008/11/30 18:21:36 martin Exp $ */
/* $NetBSD: machdep.c,v 1.172 2009/01/11 22:37:50 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.171 2008/11/30 18:21:36 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.172 2009/01/11 22:37:50 christos Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@ -427,12 +427,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);
printf("dump ");
switch ((*bdev->d_dump) (dumpdev, 0, 0, 0)) {