diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2019-02-06 23:24:46 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2019-02-06 23:24:46 +0000 |
commit | d491f4c710d6d1d123d421eb0ba7aeddee9cf7d7 (patch) | |
tree | ef74075454c2237144874f57bdb21cae709b7631 /src/sg_vpd.c | |
parent | 04adb7f5027fb9f8b4368e4eaa561e14591bb1a7 (diff) | |
download | sg3_utils-d491f4c710d6d1d123d421eb0ba7aeddee9cf7d7.tar.gz |
sg_logs+sg_vpd: tweaks for WDC SSD; sgh_dd add oflag=swait
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@810 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_vpd.c')
-rw-r--r-- | src/sg_vpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_vpd.c b/src/sg_vpd.c index ed55d90f..f73806ed 100644 --- a/src/sg_vpd.c +++ b/src/sg_vpd.c @@ -40,7 +40,7 @@ */ -static const char * version_str = "1.50 20190119"; /* spc5r20 + sbc4r15 */ +static const char * version_str = "1.51 20190202"; /* spc5r20 + sbc4r15 */ /* standard VPD pages, in ascending page number order */ #define VPD_SUPPORTED_VPDS 0x0 @@ -1174,7 +1174,7 @@ decode_dev_ids(const char * print_if_found, int num_leading, uint8_t * buff, assoc = ((bp[1] >> 4) & 0x3); if (print_if_found && (! printed)) { printed = true; - if (strlen(print_if_found) > 0) + if (strlen(print_if_found) > 0) printf(" %s:\n", print_if_found); } if (NULL == print_if_found) @@ -2840,7 +2840,7 @@ svpd_unable_to_decode(int sg_fd, struct opts_t * op, int subvalue, int off) if (op->do_raw) dStrRaw(rp, len); else { - if ((2 == op->do_hex) || (3 == op->do_hex)) + if (op->do_hex > 1) hex2stdout(rp, len, -1); else if (VPD_ASCII_OP_DEF == op->vpd_pn) hex2stdout(rp, len, 0); |