diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2014-02-18 05:40:02 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2014-02-18 05:40:02 +0000 |
commit | 64583176e57abbf45609d7432375771fbc769131 (patch) | |
tree | 448a4c52f89e77bc66a000ca583ed64e206dc4d8 /lib/sg_cmds_basic.c | |
parent | 9adb91bca282072323320f64e737d42c53c5b4e7 (diff) | |
download | sg3_utils-64583176e57abbf45609d7432375771fbc769131.tar.gz |
sg_inq: allow --page=-1 to force std INQUIRY decoding
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@555 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_cmds_basic.c')
-rw-r--r-- | lib/sg_cmds_basic.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sg_cmds_basic.c b/lib/sg_cmds_basic.c index a90e9a11..417448b5 100644 --- a/lib/sg_cmds_basic.c +++ b/lib/sg_cmds_basic.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2013 Douglas Gilbert. + * Copyright (c) 1999-2014 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -27,7 +27,7 @@ #endif -static const char * version_str = "1.64 20131217"; +static const char * version_str = "1.65 20140217"; #define SENSE_BUFF_LEN 64 /* Arbitrary, could be larger */ @@ -113,8 +113,8 @@ sg_cmds_process_helper(const char * leadin, int mx_di_len, int resid, if ((mx_di_len > 0) && (resid > 0)) { got = mx_di_len - resid; if ((verbose > 2) || check_data_in || (got > 0)) - fprintf(sg_warnings_strm, " pass-through requested " - "%d bytes but got %d bytes\n", mx_di_len, got); + fprintf(sg_warnings_strm, " pass-through requested %d " + "bytes (data-in) but got %d bytes\n", mx_di_len, got); } } if (o_sense_cat) @@ -178,8 +178,8 @@ sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin, got = mx_di_len - resid; if (verbose && (resid > 0)) fprintf(sg_warnings_strm, " %s: pass-through requested " - "%d bytes but got %d bytes\n", leadin, mx_di_len, - got); + "%d bytes (data-in) but got %d bytes\n", leadin, + mx_di_len, got); return got; } else return 0; |