Module Name:    src
Committed By:   riastradh
Date:           Wed Jun 25 13:10:27 UTC 2014

Modified Files:
        src/sys/dev/pci: agp_i810.c

Log Message:
Fix integer type mismatch in debug printf.


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 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.103 src/sys/dev/pci/agp_i810.c:1.104
--- src/sys/dev/pci/agp_i810.c:1.103	Thu Jun 12 18:46:32 2014
+++ src/sys/dev/pci/agp_i810.c	Wed Jun 25 13:10:27 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: agp_i810.c,v 1.103 2014/06/12 18:46:32 riastradh Exp $	*/
+/*	$NetBSD: agp_i810.c,v 1.104 2014/06/25 13:10:27 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.103 2014/06/12 18:46:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.104 2014/06/25 13:10:27 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1093,9 +1093,10 @@ agp_i810_bind_page(struct agp_softc *sc,
 
 	if (offset < 0 || offset >= ((isc->gtt_size/4) << AGP_PAGE_SHIFT)) {
 #ifdef AGP_DEBUG
-		printf("%s: failed: offset 0x%08x, shift %d, entries %d\n",
+		printf("%s: failed"
+		    ": offset 0x%08x, shift %d, entries %"PRIdMAX"\n",
 		    device_xname(sc->as_dev), (int)offset, AGP_PAGE_SHIFT,
-		    isc->gtt_size/4);
+		    (uintmax_t)isc->gtt_size/4);
 #endif
 		return EINVAL;
 	}

Reply via email to