aboutsummaryrefslogtreecommitdiff
path: root/testing/sgs_dd.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2019-05-18 15:37:19 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2019-05-18 15:37:19 +0000
commit3e030c2951bee369b5593243bf317bb5a482a35b (patch)
tree0fc4dff2af1d3ff6f635877879b2c8ec8e6eb1f1 /testing/sgs_dd.c
parentc80acc95be9d1463830259db821ac248e7dc7e46 (diff)
downloadsg3_utils-3e030c2951bee369b5593243bf317bb5a482a35b.tar.gz
sg_lib: add sg_f2hex_arr()
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@824 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'testing/sgs_dd.c')
-rw-r--r--testing/sgs_dd.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/sgs_dd.c b/testing/sgs_dd.c
index 991f8011..e0ff7b4b 100644
--- a/testing/sgs_dd.c
+++ b/testing/sgs_dd.c
@@ -78,7 +78,7 @@
#include "sg_unaligned.h"
-static const char * version_str = "4.07 20190503";
+static const char * version_str = "4.08 20190515";
static const char * my_name = "sgs_dd";
#define DEF_BLOCK_SIZE 512
@@ -471,7 +471,7 @@ do_v4:
}
static int
-sz_reserve(int fd, int bs, int bpt, bool rt_sig)
+sz_reserve(int fd, int bs, int bpt, bool rt_sig, bool vb)
{
int res, t, flags;
struct sg_extended_info sei;
@@ -484,7 +484,8 @@ sz_reserve(int fd, int bs, int bpt, bool rt_sig)
return 1;
}
else if (t < 40000) {
- fprintf(stderr, "sgs_dd: warning: sg driver prior to 4.0.00\n");
+ if (vb)
+ fprintf(stderr, "sgs_dd: warning: sg driver prior to 4.0.00\n");
sgs_old_sg_driver = true;
}
res = 0;
@@ -1075,7 +1076,8 @@ main(int argc, char * argv[])
return 1;
}
clp->in_is_sg = true;
- if (sz_reserve(clp->infd, clp->bs, clp->bpt, clp->use_rt_sig))
+ if (sz_reserve(clp->infd, clp->bs, clp->bpt, clp->use_rt_sig,
+ clp->debug))
return 1;
if (sgs_old_sg_driver && (clp->iflag.v4 || clp->oflag.v4)) {
pr2serr("Unable to implement v4 flag because sg driver too "
@@ -1095,7 +1097,7 @@ main(int argc, char * argv[])
else {
clp->out_is_sg = true;
if (sz_reserve(clp->outfd, clp->bs, clp->bpt,
- clp->use_rt_sig))
+ clp->use_rt_sig, clp->debug))
return 1;
if (sgs_old_sg_driver && (clp->iflag.v4 || clp->oflag.v4)) {
pr2serr("Unable to implement v4 flag because sg driver "