aboutsummaryrefslogtreecommitdiff
path: root/src/sg_dd.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2020-09-28 03:47:37 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2020-09-28 03:47:37 +0000
commit20eb07694951b0760f741e7b74c0a363f8ed2b3b (patch)
tree59c16f7951bd6901001c8a460c67958a2151f8dc /src/sg_dd.c
parenta37cbfd6b346caf0af438f405a8e72fe69454005 (diff)
downloadsg3_utils-20eb07694951b0760f741e7b74c0a363f8ed2b3b.tar.gz
sg_dd: tweak unrecovered error reporting; testing sg*_dd work, new uapi_sg.h
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@863 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_dd.c')
-rw-r--r--src/sg_dd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sg_dd.c b/src/sg_dd.c
index 328ff3d7..a224ef31 100644
--- a/src/sg_dd.c
+++ b/src/sg_dd.c
@@ -66,7 +66,7 @@
#include "sg_unaligned.h"
#include "sg_pr2serr.h"
-static const char * version_str = "6.16 20200825";
+static const char * version_str = "6.17 20200923";
#define ME "sg_dd: "
@@ -222,12 +222,12 @@ print_stats(const char * str)
pr2serr("%s%d recovered errors\n", str, recovered_errs);
if (num_retries > 0)
pr2serr("%s%d retries attempted\n", str, num_retries);
- if (iflag.coe || oflag.coe) {
- pr2serr("%s%d unrecovered errors\n", str, unrecovered_errs);
- pr2serr("%s%d read_longs fetched part of unrecovered read errors\n",
- str, read_longs);
- } else if (unrecovered_errs > 0)
+ if (unrecovered_errs > 0) {
pr2serr("%s%d unrecovered error(s)\n", str, unrecovered_errs);
+ if (iflag.coe || oflag.coe)
+ pr2serr("%s%d read_longs fetched part of unrecovered read "
+ "errors\n", str, read_longs);
+ }
if (miscompare_errs > 0)
pr2serr("%s%d miscompare error(s)\n", str, miscompare_errs);
}