diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-07-29 15:09:18 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-07-29 15:09:18 +0000 |
commit | 640f7a7eff809159d9ac4c3ffc3681a6a5c3bede (patch) | |
tree | b889f3d3a995b9ed8eed68a3bd83c75a484df174 /src/sg_get_elem_status.c | |
parent | aac31a343f55c0b40b7d46ba453201fff3430acb (diff) | |
download | sg3_utils-640f7a7eff809159d9ac4c3ffc3681a6a5c3bede.tar.gz |
cleanup warning and C++20 building issues
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@963 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_get_elem_status.c')
-rw-r--r-- | src/sg_get_elem_status.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sg_get_elem_status.c b/src/sg_get_elem_status.c index f7f06a1f..1aab2244 100644 --- a/src/sg_get_elem_status.c +++ b/src/sg_get_elem_status.c @@ -37,7 +37,7 @@ * given SCSI device. */ -static const char * version_str = "1.13 20220717"; /* sbc5r02 */ +static const char * version_str = "1.14 20220729"; /* sbc5r03 */ #define MY_NAME "sg_get_elem_status" @@ -302,7 +302,7 @@ main(int argc, char * argv[]) struct gpes_desc_t a_ped; sgj_state json_st = {0}; sgj_state * jsp = &json_st; - char b[64]; + char b[80]; static const int blen = sizeof(b); while (1) { @@ -629,8 +629,6 @@ error: else if (SG_LIB_CAT_ILLEGAL_REQ == res) pr2serr("Get LBA Status command: bad field in cdb\n"); else { - char b[80]; - sg_get_category_sense_str(res, sizeof(b), b, verbose); pr2serr("Get LBA Status command: %s\n", b); } |