From 8d195e17b56f83f04c9d3e9a569f5d01add855b8 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 11 Jul 2006 21:18:13 +0000 Subject: get rid of useless printfs that just clutter dmesg. ok deraadt@ --- sys/scsi/uk.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/scsi/uk.c') 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; -- cgit v1.2.3