Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/pnpbios If comprobe1() fails, print a message....
details: https://anonhg.NetBSD.org/src/rev/e42f76ea61d4
branches: trunk
changeset: 487884:e42f76ea61d4
user: jhawk <jhawk%NetBSD.org@localhost>
date: Wed Jun 14 15:15:43 2000 +0000
description:
If comprobe1() fails, print a message. Otherwise one gets the xname
prepended to the next configure device, i.e.
com1lpt0: at pnpbios0 index 18 (PNP0401)
diffstat:
sys/arch/i386/pnpbios/com_pnpbios.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 9f35649a697c -r e42f76ea61d4 sys/arch/i386/pnpbios/com_pnpbios.c
--- a/sys/arch/i386/pnpbios/com_pnpbios.c Wed Jun 14 14:38:52 2000 +0000
+++ b/sys/arch/i386/pnpbios/com_pnpbios.c Wed Jun 14 15:15:43 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com_pnpbios.c,v 1.3 2000/02/01 18:33:22 soren Exp $ */
+/* $NetBSD: com_pnpbios.c,v 1.4 2000/06/14 15:15:43 jhawk Exp $ */
/*
* Copyright (c) 1999
* Matthias Drochner. All rights reserved.
@@ -105,8 +105,10 @@
/*
* if the chip isn't something we recognise skip it.
*/
- if (comprobe1(sc->sc_iot, sc->sc_ioh) == 0)
+ if (comprobe1(sc->sc_iot, sc->sc_ioh) == 0) {
+ printf(": com probe failed\n");
return;
+ }
sc->sc_frequency = 115200 * 16;
Home |
Main Index |
Thread Index |
Old Index