Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Rework debug printf invocation to not fail on LP6...
details: https://anonhg.NetBSD.org/src/rev/e5cbe1161729
branches: trunk
changeset: 756656:e5cbe1161729
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Jul 27 19:31:55 2010 +0000
description:
Rework debug printf invocation to not fail on LP64 so easily.
diffstat:
sys/dev/ic/ld_aac.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (44 lines):
diff -r 080c836128cd -r e5cbe1161729 sys/dev/ic/ld_aac.c
--- a/sys/dev/ic/ld_aac.c Tue Jul 27 18:50:32 2010 +0000
+++ b/sys/dev/ic/ld_aac.c Tue Jul 27 19:31:55 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_aac.c,v 1.23 2009/05/12 14:25:17 cegger Exp $ */
+/* $NetBSD: ld_aac.c,v 1.24 2010/07/27 19:31:55 jakllsch Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_aac.c,v 1.23 2009/05/12 14:25:17 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_aac.c,v 1.24 2010/07/27 19:31:55 jakllsch Exp $");
#include "rnd.h"
@@ -212,9 +212,9 @@
sge->SgAddress = htole32(xfer->dm_segs[i].ds_addr);
sge->SgByteCount = htole32(xfer->dm_segs[i].ds_len);
AAC_DPRINTF(AAC_D_IO,
- ("#%d va %p pa %lx len %lx\n", i, data,
- (u_long)xfer->dm_segs[i].ds_addr,
- (u_long)xfer->dm_segs[i].ds_len));
+ ("#%d va %p pa %" PRIxPADDR " len %zx\n",
+ i, data, xfer->dm_segs[i].ds_addr,
+ xfer->dm_segs[i].ds_len));
}
size += xfer->dm_nsegs * sizeof(struct aac_sg_entry);
@@ -265,9 +265,9 @@
sge->SgAddress = htole64(xfer->dm_segs[i].ds_addr);
sge->SgByteCount = htole32(xfer->dm_segs[i].ds_len);
AAC_DPRINTF(AAC_D_IO,
- ("#%d va %p pa %llx len %lx\n", i, data,
- (u_int64_t)xfer->dm_segs[i].ds_addr,
- (u_long)xfer->dm_segs[i].ds_len));
+ ("#%d va %p pa %" PRIxPADDR " len %zx\n",
+ i, data, xfer->dm_segs[i].ds_addr,
+ xfer->dm_segs[i].ds_len));
}
size += xfer->dm_nsegs * sizeof(struct aac_sg_entry64);
size = sizeof(fib->Header) + size;
Home |
Main Index |
Thread Index |
Old Index