diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-03-18 03:59:35 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-03-18 03:59:35 +0000 |
commit | 3b5e24c540411ca466084d13ee0a495ca5397949 (patch) | |
tree | c504e0dcdc53bc14423836bf1a551237d3f92c43 /sys | |
parent | 6700e79932d5ede6df1309496deb75bec6d2897f (diff) |
fail to attach with a printf instead of a panic for newer yet unsupported
Yukon-2-based cards.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_sk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index b8d0936bb07..a9a8da3ba66 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.61 2005/03/12 18:16:56 brad Exp $ */ +/* $OpenBSD: if_sk.c,v 1.62 2005/03/18 03:59:34 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1324,8 +1324,9 @@ sk_attach(struct device *parent, struct device *self, void *aux) sk_init_yukon(sc_if); break; default: - panic("%s: unknown device type %d", sc->sk_dev.dv_xname, + printf("%s: unknown device type %d", sc->sk_dev.dv_xname, sc->sk_type); + goto fail; } DPRINTFN(2, ("sk_attach: 1\n")); |