diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-08-08 18:57:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-08-08 18:57:17 +0000 |
commit | 640aa8c942d34b8bff599f54cc8843d81e105e4c (patch) | |
tree | 252bc46a3ce2878b0827ae0f450b0584a44fa10c | |
parent | 210bf57a49dfadcf0e6cc78fcb11336e93d5d771 (diff) |
print out target as channel:target.lun
-rw-r--r-- | sbin/bioctl/bioctl.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c index 63621b6a6de..c24add1a0d7 100644 --- a/sbin/bioctl/bioctl.c +++ b/sbin/bioctl/bioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioctl.c,v 1.24 2005/08/08 04:04:13 deraadt Exp $ */ +/* $OpenBSD: bioctl.c,v 1.25 2005/08/08 18:57:16 deraadt Exp $ */ /* * Copyright (c) 2004, 2005 Marco Peereboom @@ -256,12 +256,9 @@ bio_inq(char *name) else snprintf(size, sizeof size, "%14llu", bd.bd_size); - if (bd.bd_lun) - snprintf(scsiname, sizeof scsiname, - "scsi%u:%u", bd.bd_target, bd.bd_lun); - else - snprintf(scsiname, sizeof scsiname, - "scsi%u", bd.bd_target); + snprintf(scsiname, sizeof scsiname, + "%u:%u.%u", + bd.bd_channel, bd.bd_target, bd.bd_lun); snprintf(encname, sizeof encname, "ses#"); printf(" %3u %-10s %14s %-7s %-6s <%s>\n", |