diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2013-06-04 20:33:26 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2013-06-04 20:33:26 +0000 |
commit | 5667f0c5f1da0038ea9afe75b098fe632c857bc0 (patch) | |
tree | 33aee328ac9213c59893213c9c5bdbe3248e29c9 /src/sginfo.c | |
parent | dac0bec87054e0a862033d9304c45c9ecbe248c6 (diff) | |
download | sg3_utils-5667f0c5f1da0038ea9afe75b098fe632c857bc0.tar.gz |
sg_compare_and_write: fix wrprotect bug
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@498 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sginfo.c')
-rw-r--r-- | src/sginfo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sginfo.c b/src/sginfo.c index 6a8f0b93..b27f117c 100644 --- a/src/sginfo.c +++ b/src/sginfo.c @@ -122,7 +122,7 @@ #define _GNU_SOURCE #endif -static const char * version_str = "2.33 [20130507]"; +static const char * version_str = "2.34 [20130603]"; #include <stdio.h> #include <string.h> @@ -639,14 +639,14 @@ check_parm_type(int i) if (i == 1 && is_hex[next_parameter] != 1) { snprintf(reason, REASON_SZ, - "simple number (pos %i) instead of @ hexdatafield: %"PRIu64, - next_parameter, replacement_values[next_parameter]); + "simple number (pos %i) instead of @ hexdatafield: %" + PRIu64 , next_parameter, replacement_values[next_parameter]); usage(reason); } if (i != 1 && is_hex[next_parameter]) { snprintf(reason, REASON_SZ, - "@ hexdatafield (pos %i) instead of a simple number: %"PRIu64, - next_parameter, replacement_values[next_parameter]); + "@ hexdatafield (pos %i) instead of a simple number: %" + PRIu64 , next_parameter, replacement_values[next_parameter]); usage(reason); } } @@ -1783,7 +1783,7 @@ trytenbyte: } case 3: /* lba (64 bit) */ while (len > 0) { - printf("%15"PRId64, getnbyte_ll(df, 8)); + printf("%15" PRId64 , getnbyte_ll(df, 8)); len -= 8; df += 8; i++; |