From: Peter Avalos Date: Sun, 10 Feb 2008 00:32:53 +0000 (+0000) Subject: It's confusing to say that "Command Queueing Supported" just based X-Git-Tag: v2.0.1~1142 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/f9fbbd3c1f2c6d1a5754c259a27d6473d9c0680e It's confusing to say that "Command Queueing Supported" just based upon the scsi flag validity field. Instead, just say "Command Queueing Enabled" when it is- otherwise remain mute. Obtained-from: FreeBSD --- diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index a86d0d439f..9631c2f1d7 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -26,7 +26,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sbin/camcontrol/camcontrol.c,v 1.21.2.13 2003/01/08 17:55:02 njl Exp $ - * $DragonFly: src/sbin/camcontrol/camcontrol.c,v 1.10 2008/02/10 00:01:01 pavalos Exp $ + * $DragonFly: src/sbin/camcontrol/camcontrol.c,v 1.11 2008/02/10 00:32:53 pavalos Exp $ */ #include @@ -946,10 +946,9 @@ scsixferrate(struct cam_device *device) struct ccb_trans_settings_scsi *scsi = &ccb->cts.proto_specific.scsi; if (scsi->valid & CTS_SCSI_VALID_TQ) { - if (scsi->flags & CTS_SCSI_FLAGS_TAG_ENB) + if (scsi->flags & CTS_SCSI_FLAGS_TAG_ENB) { fprintf(stdout, ", Command Queueing Enabled"); - else - fprintf(stdout, ", Command Queueing Supported"); + } } }