From ccefa8190c1f38cb71384bcdd786599db7de570a Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Sun, 18 Sep 2022 02:14:13 +0000 Subject: sg_inq+sg_vpd: ongoing JSON updates Probably at the end of the JSON work for sg_inq since it only has four vendor specific VPD pages. sg_vpd has a lot more vendor specific VPD pages which are yet to be 'jsonified'. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@971 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_vpd.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/sg_vpd.c') diff --git a/src/sg_vpd.c b/src/sg_vpd.c index 707d3e12..35de6ca4 100644 --- a/src/sg_vpd.c +++ b/src/sg_vpd.c @@ -42,7 +42,7 @@ */ -static const char * version_str = "1.82 20220826"; /* spc6r06 + sbc5r03 */ +static const char * version_str = "1.83 20220915"; /* spc6r06 + sbc5r03 */ #define MY_NAME "sg_vpd" @@ -444,17 +444,6 @@ device_id_vpd_variants(uint8_t * buff, int len, int subvalue, } } -static int -no_ascii_4hex(const struct opts_t * op) -{ - if (op->do_hex < 2) - return 1; - else if (2 == op->do_hex) - return 0; - else - return -1; -} - static void /* VPD_SUPPORTED_VPDS ["sv"] */ decode_supported_vpd_4vpd(uint8_t * buff, int len, struct opts_t * op, sgj_opaque_p jap) @@ -1100,16 +1089,6 @@ svpd_unable_to_decode(int sg_fd, struct opts_t * op, int subvalue, int off) } } else hex2stdout(rp, len, no_ascii_4hex(op)); -#if 0 - if (op->do_hex > 1) - hex2stdout(rp, len, -1); - else if (VPD_ASCII_OP_DEF == op->vpd_pn) - hex2stdout(rp, len, 0); - else if (1 == op->do_hex) - hex2stdout(rp, len, (op->do_long ? 0 : 1)); - else - hex2stdout(rp, len, 0); -#endif } } else if ((! op->do_quiet) && (! op->examine_given)) { if (op->vpd_pn >= 0) -- cgit v1.2.3