diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2009-07-24 19:58:51 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2009-07-24 19:58:51 +0000 |
commit | 7a31f052e8013960cc162447397ca552ff50dfb2 (patch) | |
tree | dae6957e16343aa34d23a8f639fc9f8be37e875a /src/sg_write_long.c | |
parent | 42a33ce7e76f90eea8e60d7efbd65a44b1f0c65a (diff) | |
download | sg3_utils-7a31f052e8013960cc162447397ca552ff50dfb2.tar.gz |
reverse out printf(%#) change, broken for %#02x when value is 0
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@284 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_write_long.c')
-rw-r--r-- | src/sg_write_long.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_write_long.c b/src/sg_write_long.c index 6a96809d..501e1d54 100644 --- a/src/sg_write_long.c +++ b/src/sg_write_long.c @@ -31,7 +31,7 @@ This code was contributed by Saeed Bishara */ -static char * version_str = "1.17 20090717"; +static char * version_str = "1.17 20090420"; #define MAX_XFER_LEN 10000 @@ -161,7 +161,7 @@ main(int argc, char * argv[]) } break; default: - fprintf(stderr, "unrecognised option code %#x ??\n", c); + fprintf(stderr, "unrecognised option code 0x%x ??\n", c); usage(); return SG_LIB_SYNTAX_ERROR; } @@ -247,7 +247,7 @@ main(int argc, char * argv[]) } if (verbose) fprintf(stderr, ME "issue write long to device %s\n\t\txfer_len= %d " - "(%#x), lba=%" PRIu64 " (%#" PRIx64 ")\n cor_dis=%d, " + "(0x%x), lba=%" PRIu64 " (0x%" PRIx64 ")\n cor_dis=%d, " "wr_uncor=%d, pblock=%d\n", device_name, xfer_len, xfer_len, llba, llba, cor_dis, wr_uncor, pblock); |