diff options
Diffstat (limited to 'sg_io_linux.c')
-rw-r--r-- | sg_io_linux.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sg_io_linux.c b/sg_io_linux.c index 4b9760b9..df135522 100644 --- a/sg_io_linux.c +++ b/sg_io_linux.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2005 Douglas Gilbert. + * Copyright (c) 1999-2006 Douglas Gilbert. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -34,6 +34,9 @@ #include "sg_io_linux.h" +/* Version 1.01 20060626 */ + + void sg_print_masked_status(int masked_status) { int scsi_status = (masked_status << 1) & 0x7e; @@ -139,6 +142,9 @@ static int sg_linux_sense_print(const char * leadin, int scsi_status, fprintf(sg_warnings_strm, "\n"); } if (0 != driver_status) { + if (done_sense && + (SG_LIB_DRIVER_SENSE == (SG_LIB_DRIVER_MASK & driver_status))) + return 0; if (leadin && (! done_leadin)) fprintf(sg_warnings_strm, "%s: ", leadin); if (done_leadin) |