diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-07-11 18:16:30 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-07-11 18:16:30 +0000 |
commit | a51fa77e373d1e4a1be10e8e4ef9a87547d26e86 (patch) | |
tree | 88b59744783292c3f8ec8d8906cd723c5900e375 /src/sg_decode_sense.c | |
parent | 5e6f4a6ba05f122b39407f2bdb8d8bea194b8990 (diff) | |
download | sg3_utils-a51fa77e373d1e4a1be10e8e4ef9a87547d26e86.tar.gz |
sg_inq+sg_vpd: merge VPD page processing
This is being done so that ongoing JSON work is
not duplicated for both sg_vpd and sg_inq. This
might lead to small changes in formatting of VPD
(and standard INQUIRY) output. That in turn might
break parsing code expecting the former output.
Hopefully this will push folks who are parsing to
try out JSON output. However JSON output format
may not be that stable, hoping for feedback on
that front.
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@959 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_decode_sense.c')
-rw-r--r-- | src/sg_decode_sense.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_decode_sense.c b/src/sg_decode_sense.c index 83f1d1fa..8950cdbd 100644 --- a/src/sg_decode_sense.c +++ b/src/sg_decode_sense.c @@ -30,7 +30,7 @@ #include "sg_unaligned.h" -static const char * version_str = "1.28 20220626"; +static const char * version_str = "1.29 20220711"; #define MY_NAME "sg_decode_sense" @@ -504,7 +504,7 @@ main(int argc, char *argv[]) printf("%s\n", b); } else { if (as_json) { - sgj_get_sense(jsp, jop, op->sense, op->sense_len); + sgj_pr_js_sense(jsp, jop, op->sense, op->sense_len); if (jsp->pr_out_hr) { sg_get_sense_str(NULL, op->sense, op->sense_len, op->verbose, blen, b); |