summaryrefslogtreecommitdiff
path: root/sys/scsi/safte.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-08-05 00:17:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-08-05 00:17:03 +0000
commitda10ee03bf61e81870fb860632bdedd4784628d1 (patch)
treed959cbe2ac3ac6a17210e28cdad95c7cb9ef97e1 /sys/scsi/safte.c
parentd9dcea28472ab619bcb75a8fe501a0e4c4cca111 (diff)
shorten dmesg output
Diffstat (limited to 'sys/scsi/safte.c')
-rw-r--r--sys/scsi/safte.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/scsi/safte.c b/sys/scsi/safte.c
index 1a3fb6909de..78bc87a1e6c 100644
--- a/sys/scsi/safte.c
+++ b/sys/scsi/safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safte.c,v 1.1 2005/08/05 00:08:58 dlg Exp $ */
+/* $OpenBSD: safte.c,v 1.2 2005/08/05 00:17:02 deraadt Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -143,8 +143,6 @@ safte_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link = sa->sa_sc_link;
sc->sc_state = SAFTE_ST_NONE;
- printf("\n");
-
memset(&cmd, 0, sizeof(cmd));
cmd.opcode = INQUIRY;
cmd.length = SAFTE_INQ_LEN;
@@ -153,15 +151,14 @@ safte_attach(struct device *parent, struct device *self, void *aux)
if (scsi_scsi_cmd(sc->sc_link, (struct scsi_generic *)&cmd,
sizeof(cmd), (u_char *)&inq, cmd.length, 2, 10000, NULL,
SCSI_DATA_IN) != 0) {
- printf("%s: unable to get inquiry information\n", DEVNAME(sc));
+ printf(": unable to get inquiry information\n");
return;
}
memset(rev, 0, sizeof(rev));
memcpy(rev, si->revision, sizeof(si->revision));
- printf("%s: SCSI Accessed Fault-Tolerant Enclosure rev %s\n",
- DEVNAME(sc), rev);
+ printf(": rev %s\n", rev);
if (safte_read_config(sc) != 0) {
printf("%s: unable to read enclosure configuration\n",