From 2a06794e0449288c91c5fbccd8dfe13c4cacf9d9 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 25 Jul 2007 21:22:21 +0000 Subject: Add a missing splx() and while there update the printf() to match the format of the other ones. From Marc Winiger mw at msys . ch --- sys/dev/usb/if_cdce.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/dev/usb/if_cdce.c b/sys/dev/usb/if_cdce.c index edfaa7e5d3a..fa7be772a80 100644 --- a/sys/dev/usb/if_cdce.c +++ b/sys/dev/usb/if_cdce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cdce.c,v 1.35 2007/07/25 16:42:24 mbalmer Exp $ */ +/* $OpenBSD: if_cdce.c,v 1.36 2007/07/25 21:22:20 claudio Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul @@ -619,8 +619,9 @@ cdce_init(void *xsc) &sc->cdce_intr_buf, sc->cdce_intr_size, cdce_intr, USBD_DEFAULT_INTERVAL); if (err) { - printf("Failed to establish interrupt pipe: %s\n", - usbd_errstr(err)); + printf("%s: open interrupt pipe failed: %s\n", + sc->cdce_dev.dv_xname, usbd_errstr(err)); + splx(s); return; } } -- cgit v1.2.3