aboutsummaryrefslogtreecommitdiff
path: root/src/sg_compare_and_write.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2020-05-13 05:04:24 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2020-05-13 05:04:24 +0000
commiteda62fa0cd1d5886bd9893ba2831a37c5e24d4c7 (patch)
tree38069e363793c431e6b151501bb7f28f290207a6 /src/sg_compare_and_write.c
parent0083e58d85910aa7c8599d06bfff48ea5f8c98d1 (diff)
downloadsg3_utils-eda62fa0cd1d5886bd9893ba2831a37c5e24d4c7.tar.gz
testing/sgh_dd: check for bs/READ_CAPACITY(LBsize) mismatch; fix some compile warnings and some --version issues
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@851 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_compare_and_write.c')
-rw-r--r--src/sg_compare_and_write.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sg_compare_and_write.c b/src/sg_compare_and_write.c
index 11f5e859..23d69b3a 100644
--- a/src/sg_compare_and_write.c
+++ b/src/sg_compare_and_write.c
@@ -56,7 +56,7 @@
#include "sg_unaligned.h"
#include "sg_pr2serr.h"
-static const char * version_str = "1.28 20200429";
+static const char * version_str = "1.29 20200509";
#define DEF_BLOCK_SIZE 512
#define DEF_NUM_BLOCKS (1)
@@ -292,6 +292,8 @@ parse_args(int argc, char* argv[], struct opts_t * op)
goto out_err;
}
}
+ if (op->version_given && (! op->verbose_given))
+ return 0;
if (NULL == op->device_name) {
pr2serr("missing device name!\n");
goto out_err;