From 78e5dc866c29ebb74d0114c884db2fd4dd31b853 Mon Sep 17 00:00:00 2001 From: mjacob Date: Wed, 1 Oct 1997 18:47:01 +0000 Subject: [PATCH] Silly boy.... don't print out sense info if the command was marked SCSI_SILENT, and print the opcode with a leading 0x if you're printing in hex. --- sys/dev/scsipi/scsi_base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/scsipi/scsi_base.c b/sys/dev/scsipi/scsi_base.c index 22aa9cf7063b..afac00688076 100644 --- a/sys/dev/scsipi/scsi_base.c +++ b/sys/dev/scsipi/scsi_base.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsi_base.c,v 1.50 1997/10/01 01:18:56 enami Exp $ */ +/* $NetBSD: scsi_base.c,v 1.51 1997/10/01 18:47:01 mjacob Exp $ */ /* * Copyright (c) 1994, 1995, 1997 Charles M. Hannum. All rights reserved. @@ -256,7 +256,8 @@ scsi_interpret_sense(xs) } #ifdef SCSIVERBOSE - scsi_print_sense(xs, 0); + if ((xs->flags & SCSI_SILENT) == 0) + scsi_print_sense(xs, 0); #else if (key) { sc_link->sc_print_addr(sc_link); @@ -584,7 +585,7 @@ scsi_print_sense(xs, verbosity) xs->sc_link->sc_print_addr(xs->sc_link); s = (char *) &xs->sense.scsi_sense; - printf(" Check Condition on opcode %x\n", xs->cmd->opcode); + printf(" Check Condition on opcode 0x%x\n", xs->cmd->opcode); /* * Basics- print out SENSE KEY