Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/isa Convert some bogus panic()s into printf()s.
details: https://anonhg.NetBSD.org/src/rev/c4682e5f368b
branches: trunk
changeset: 472489:c4682e5f368b
user: bad <bad%NetBSD.org@localhost>
date: Fri Apr 30 15:29:24 1999 +0000
description:
Convert some bogus panic()s into printf()s.
diffstat:
sys/dev/isa/if_tr_isa.c | 14 +++++++++-----
sys/dev/isa/if_trtcm_isa.c | 8 +++++---
2 files changed, 14 insertions(+), 8 deletions(-)
diffs (51 lines):
diff -r 9930b5449922 -r c4682e5f368b sys/dev/isa/if_tr_isa.c
--- a/sys/dev/isa/if_tr_isa.c Fri Apr 30 15:12:57 1999 +0000
+++ b/sys/dev/isa/if_tr_isa.c Fri Apr 30 15:29:24 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tr_isa.c,v 1.3 1999/04/29 15:47:03 bad Exp $ */
+/* $NetBSD: if_tr_isa.c,v 1.4 1999/04/30 15:29:24 bad Exp $ */
#undef TRISADEBUG
/*
@@ -191,11 +191,15 @@
sc->sc_piot = ia->ia_iot;
sc->sc_memt = ia->ia_memt;
- if (tr_isa_map_io(ia, &sc->sc_pioh, &sc->sc_mmioh))
- panic("tr_isa_attach: IO space vanished\n");
+ if (tr_isa_map_io(ia, &sc->sc_pioh, &sc->sc_mmioh)) {
+ printf("tr_isa_attach: IO space vanished\n");
+ return;
+ }
if (bus_space_map(sc->sc_memt, ia->ia_maddr, ia->ia_msize, 0,
- &sc->sc_sramh))
- panic("tr_isa_attach: shared ram space vanished\n");
+ &sc->sc_sramh)) {
+ printf("tr_isa_attach: shared ram space vanished\n");
+ return;
+ }
/* set ACA offset */
sc->sc_aca = TR_ACA_OFFSET;
sc->sc_memwinsz = ia->ia_msize;
diff -r 9930b5449922 -r c4682e5f368b sys/dev/isa/if_trtcm_isa.c
--- a/sys/dev/isa/if_trtcm_isa.c Fri Apr 30 15:12:57 1999 +0000
+++ b/sys/dev/isa/if_trtcm_isa.c Fri Apr 30 15:29:24 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_trtcm_isa.c,v 1.2 1999/03/22 23:01:37 bad Exp $ */
+/* $NetBSD: if_trtcm_isa.c,v 1.3 1999/04/30 15:29:24 bad Exp $ */
#undef TRTCMISADEBUG
/*
@@ -235,8 +235,10 @@
*/
tcm = (struct tcm_isa_done_probe *)
malloc(sizeof(struct tcm_isa_done_probe), M_DEVBUF, M_NOWAIT);
- if (tcm == NULL)
- panic("tcmtrprobe: can't allocate state storage");
+ if (tcm == NULL) {
+ printf("trtcm_isa_probe: can't allocate state storage");
+ return 0;
+ }
tcm->tcm_bus = bus;
LIST_INSERT_HEAD(&tcm_isa_all_probes, tcm, tcm_link);
Home |
Main Index |
Thread Index |
Old Index