diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2017-12-31 04:47:54 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2017-12-31 04:47:54 +0000 |
commit | db994f4b56874c98f437c7744e7608e8d0ed1af6 (patch) | |
tree | 2983bb6af0a2548f556413ed86211a1a610de51c /src/sg_logs.c | |
parent | db09526533daf4cd4886195a5f752fc35c399168 (diff) | |
download | sg3_utils-db994f4b56874c98f437c7744e7608e8d0ed1af6.tar.gz |
sg_unaligned: fix argument type of sg_get_unaligned_be24(); other minor cleanups
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@740 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_logs.c')
-rw-r--r-- | src/sg_logs.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/sg_logs.c b/src/sg_logs.c index 36182af9..81ef6cf6 100644 --- a/src/sg_logs.c +++ b/src/sg_logs.c @@ -32,7 +32,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "1.57 20171112"; /* spc5r17 + sbc4r11 */ +static const char * version_str = "1.58 20171229"; /* spc5r17 + sbc4r11 */ #define MX_ALLOC_LEN (0xfffc) #define SHORT_RESP_LEN 128 @@ -4904,9 +4904,13 @@ show_background_scan_results_page(const uint8_t * resp, int len, printf("\n"); } printf(" LBA (associated with medium error): 0x"); - for (m = 0; m < 8; ++m) - printf("%02x", bp[16 + m]); - printf("\n"); + if (sg_all_zeros(bp + 16, 8)) + printf("0\n"); + else { + for (m = 0; m < 8; ++m) + printf("%02x", bp[16 + m]); + printf("\n"); + } break; } if (op->do_pcb) |