diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2019-10-27 21:44:39 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2019-10-27 21:44:39 +0000 |
commit | 29fbcc3d5124c2109c0c05aeba6d53d99cb9eba1 (patch) | |
tree | a1c0d32b6d5750795ac6a0d56a72aab4f2f7a05a /testing/sg_tst_bidi.c | |
parent | ee26c8116cfc960af016b8ad81bb3f2fc9ab7d09 (diff) | |
download | sg3_utils-29fbcc3d5124c2109c0c05aeba6d53d99cb9eba1.tar.gz |
sg_logs: change '-ll' option to suppress subpages=0xff, apart from page 0x0,0xff; asc/ascq sync with asc-num.txt @t10 20191014; sg_chk_asc: tweak for LF terminated lines
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@834 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'testing/sg_tst_bidi.c')
-rw-r--r-- | testing/sg_tst_bidi.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/testing/sg_tst_bidi.c b/testing/sg_tst_bidi.c index d2a4ccfb..2fbb98ce 100644 --- a/testing/sg_tst_bidi.c +++ b/testing/sg_tst_bidi.c @@ -53,7 +53,7 @@ is implemented by the scsi_debug driver is used. */ -static const char * version_str = "Version: 1.05 20190501"; +static const char * version_str = "Version: 1.06 20191021"; #define INQ_REPLY_LEN 96 #define INQ_CMD_OP 0x12 @@ -265,8 +265,7 @@ main(int argc, char * argv[]) verbose += 1; else if (0 == memcmp("-V", argv[k], 2)) { printf("%s\n", version_str); - file_name = 0; - break; + return 0; } else if (0 == memcmp("-w", argv[k], 2)) disable_write = false; else if (*argv[k] == '-') { @@ -378,7 +377,7 @@ rep_sg_io: cat = sg_err_category_new(rio_v4.device_status, rio_v4.transport_status, rio_v4.driver_status, - (const uint8_t *)(unsigned long)rio_v4.response, + (const uint8_t *)(unsigned long)rio_v4.response, rio_v4.response_len); switch (cat) { case SG_LIB_CAT_CLEAN: @@ -392,7 +391,7 @@ rep_sg_io: sg_linux_sense_print(NULL, rio_v4.device_status, rio_v4.transport_status, rio_v4.driver_status, - (const uint8_t *)(unsigned long)rio_v4.response, + (const uint8_t *)(unsigned long)rio_v4.response, rio_v4.response_len, true); break; } @@ -546,7 +545,7 @@ rep_async: cat = sg_err_category_new(rio_v4.device_status, rio_v4.transport_status, rio_v4.driver_status, - (const uint8_t *)(unsigned long)rio_v4.response, + (const uint8_t *)(unsigned long)rio_v4.response, rio_v4.response_len); switch (cat) { case SG_LIB_CAT_CLEAN: @@ -560,7 +559,7 @@ rep_async: sg_linux_sense_print(NULL, rio_v4.device_status, rio_v4.transport_status, rio_v4.driver_status, - (const uint8_t *)(unsigned long)rio_v4.response, + (const uint8_t *)(unsigned long)rio_v4.response, rio_v4.response_len, true); break; } |