Module Name: src
Committed By: riastradh
Date: Tue Jul 1 16:27:25 UTC 2014
Modified Files:
src/sys/dev/pci: agp_i810.c
Log Message:
Tweak debug printf directives.
To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/sys/dev/pci/agp_i810.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/agp_i810.c
diff -u src/sys/dev/pci/agp_i810.c:1.106 src/sys/dev/pci/agp_i810.c:1.107
--- src/sys/dev/pci/agp_i810.c:1.106 Fri Jun 27 22:27:16 2014
+++ src/sys/dev/pci/agp_i810.c Tue Jul 1 16:27:25 2014
@@ -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 @@ agp_i810_bind_page(struct agp_softc *sc,
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 @@ agp_i810_alloc_memory(struct agp_softc *
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;