Fix integer type mismatch in debug printf.

This commit is contained in:
riastradh 2014-06-25 13:10:27 +00:00
parent 6ba0a195e1
commit 3b3e9badb3
1 changed files with 5 additions and 4 deletions

View File

@ -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, off_t offset, bus_addr_t physical)
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;
}