Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mca fix error printf()
details: https://anonhg.NetBSD.org/src/rev/67620a182266
branches: trunk
changeset: 572314:67620a182266
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Wed Dec 29 18:14:12 2004 +0000
description:
fix error printf()
change one mask to use hexadecimal number instead of decimal, so it's easier
to verify
diffstat:
sys/dev/mca/if_elmc_mca.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 03bc3085ac70 -r 67620a182266 sys/dev/mca/if_elmc_mca.c
--- a/sys/dev/mca/if_elmc_mca.c Wed Dec 29 17:57:19 2004 +0000
+++ b/sys/dev/mca/if_elmc_mca.c Wed Dec 29 18:14:12 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_elmc_mca.c,v 1.14 2003/10/25 20:19:01 mycroft Exp $ */
+/* $NetBSD: if_elmc_mca.c,v 1.15 2004/12/29 18:14:12 jdolecek Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.14 2003/10/25 20:19:01 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.15 2004/12/29 18:14:12 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -146,11 +146,11 @@
case 8: irq = 9; break;
case 1: irq = 12; break;
default:
- printf("%s: cannot determine irq\n", sc->sc_dev.dv_xname);
+ printf(": cannot determine irq\n");
return;
}
- pbram_addr = ELMC_MADDR_BASE + (((pos2 & 24) >> 3) * 0x8000);
+ pbram_addr = ELMC_MADDR_BASE + (((pos2 & 0x18) >> 3) * 0x8000);
printf(" slot %d irq %d: 3Com EtherLink/MC Ethernet Adapter (3C523)\n",
ma->ma_slot + 1, irq);
Home |
Main Index |
Thread Index |
Old Index