summaryrefslogtreecommitdiff
path: root/sys/scsi/uk.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-07-11 21:18:13 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-07-11 21:18:13 +0000
commit8d195e17b56f83f04c9d3e9a569f5d01add855b8 (patch)
treebe5fe7fa384133e56508e23b2c982365791a0d91 /sys/scsi/uk.c
parent095c0fbe2203f4335e8945d2456d39e2f6ef4b50 (diff)
get rid of useless printfs that just clutter dmesg.
ok deraadt@
Diffstat (limited to 'sys/scsi/uk.c')
-rw-r--r--sys/scsi/uk.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/scsi/uk.c b/sys/scsi/uk.c
index f141291277b..8188a6cf29c 100644
--- a/sys/scsi/uk.c
+++ b/sys/scsi/uk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uk.c,v 1.10 2006/07/11 08:16:06 dlg Exp $ */
+/* $OpenBSD: uk.c,v 1.11 2006/07/11 21:18:12 dlg Exp $ */
/* $NetBSD: uk.c,v 1.15 1996/03/17 00:59:57 thorpej Exp $ */
/*
@@ -100,7 +100,6 @@ ukattach(struct device *parent, struct device *self, void *aux)
sc_link->openings = 1;
printf("\n");
- printf("%s: unknown device\n", uk->sc_dev.dv_xname);
}
/*
@@ -127,10 +126,8 @@ ukopen(dev_t dev, int flag, int fmt, struct proc *p)
dev, unit, uk_cd.cd_ndevs));
/* Only allow one at a time */
- if (sc_link->flags & SDEV_OPEN) {
- printf("%s: already open\n", uk->sc_dev.dv_xname);
- return EBUSY;
- }
+ if (sc_link->flags & SDEV_OPEN)
+ return (EBUSY);
sc_link->flags |= SDEV_OPEN;