Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Tweak debug printf directives.
details: https://anonhg.NetBSD.org/src/rev/66b13eb73f5a
branches: trunk
changeset: 330259:66b13eb73f5a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jul 01 16:27:25 2014 +0000
description:
Tweak debug printf directives.
diffstat:
sys/dev/pci/agp_i810.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 1da83aac2f38 -r 66b13eb73f5a sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c Tue Jul 01 16:18:55 2014 +0000
+++ b/sys/dev/pci/agp_i810.c Tue Jul 01 16:27:25 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: agp_i810.c,v 1.106 2014/06/27 22:27:16 riastradh Exp $ */
+/* $NetBSD: agp_i810.c,v 1.107 2014/07/01 16:27:25 riastradh Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.106 2014/06/27 22:27:16 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.107 2014/07/01 16:27:25 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1100,8 +1100,9 @@
if (offset < 0 || offset >= ((isc->gtt_size/4) << AGP_PAGE_SHIFT)) {
DPRINTF(sc, "failed"
- ": offset 0x%08x, shift %d, entries %"PRIuMAX"\n",
- (int)offset, AGP_PAGE_SHIFT,
+ ": offset 0x%"PRIxMAX", shift %u, entries %"PRIuMAX"\n",
+ (uintmax_t)offset,
+ (unsigned)AGP_PAGE_SHIFT,
(uintmax_t)isc->gtt_size/4);
return EINVAL;
}
@@ -1160,7 +1161,7 @@
struct agp_memory *mem;
int error;
- DPRINTF(sc, "AGP: alloc(%d, 0x%x)\n", type, (int)size);
+ DPRINTF(sc, "AGP: alloc(%d, 0x%"PRIxMAX")\n", type, (uintmax_t)size);
if (size <= 0)
return NULL;
Home |
Main Index |
Thread Index |
Old Index