Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix a printf format.
details: https://anonhg.NetBSD.org/src/rev/67a54bcf4f6f
branches: trunk
changeset: 551603:67a54bcf4f6f
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Sep 08 19:17:29 2003 +0000
description:
Fix a printf format.
diffstat:
sys/dev/pci/if_sk.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 07277dba6541 -r 67a54bcf4f6f sys/dev/pci/if_sk.c
--- a/sys/dev/pci/if_sk.c Mon Sep 08 19:00:48 2003 +0000
+++ b/sys/dev/pci/if_sk.c Mon Sep 08 19:17:29 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sk.c,v 1.1 2003/08/26 21:11:00 jdolecek Exp $ */
+/* $NetBSD: if_sk.c,v 1.2 2003/09/08 19:17:29 thorpej Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -1124,8 +1124,9 @@
}
if (bus_dmamem_map(sc->sc_dmatag, &seg, rseg,
sizeof(struct sk_ring_data), &kva, BUS_DMA_NOWAIT)) {
- printf("%s: can't map dma buffers (%d bytes)\n",
- sc_if->sk_dev.dv_xname, sizeof(struct sk_ring_data));
+ printf("%s: can't map dma buffers (%lu bytes)\n",
+ sc_if->sk_dev.dv_xname,
+ (u_long) sizeof(struct sk_ring_data));
bus_dmamem_free(sc->sc_dmatag, &seg, rseg);
goto fail;
}
Home |
Main Index |
Thread Index |
Old Index