diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2009-07-22 02:22:05 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2009-07-22 02:22:05 +0000 |
commit | 017aa7827624e209683c4376074d598ed518e915 (patch) | |
tree | 9ad686b4865d2384dc72058ef8284996f4d0da79 /src/sg_sat_set_features.c | |
parent | 137715a6cb23b4d53521fdeffbfb6164bce4781b (diff) | |
download | sg3_utils-017aa7827624e209683c4376074d598ed518e915.tar.gz |
change many printf(0x%x) format strings to %#x
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@281 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_sat_set_features.c')
-rw-r--r-- | src/sg_sat_set_features.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sg_sat_set_features.c b/src/sg_sat_set_features.c index d44c73d3..4ac4b172 100644 --- a/src/sg_sat_set_features.c +++ b/src/sg_sat_set_features.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2007 Douglas Gilbert. + * Copyright (c) 2006-2009 Douglas Gilbert. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -61,7 +61,7 @@ #define DEF_TIMEOUT 20 -static char * version_str = "1.04 20070918"; +static char * version_str = "1.04 20090717"; static struct option long_options[] = { {"count", required_argument, 0, 'c'}, @@ -236,11 +236,11 @@ static int do_set_features(int sg_fd, int feature, int count, int lba, } if (0x72 != (sense_buffer[0] & 0x7f)) { fprintf(stderr, "expected descriptor sense format, response " - "code=0x%x\n", sense_buffer[0]); + "code=%#x\n", sense_buffer[0]); return SG_LIB_CAT_MALFORMED; } } else if (res > 0) { - fprintf(stderr, "Unexpected SCSI status=0x%x\n", res); + fprintf(stderr, "Unexpected SCSI status=%#x\n", res); return SG_LIB_CAT_MALFORMED; } else { fprintf(stderr, "ATA pass through (%d) failed\n", cdb_len); @@ -325,7 +325,7 @@ int main(int argc, char * argv[]) fprintf(stderr, "version: %s\n", version_str); return 0; default: - fprintf(stderr, "unrecognised option code 0x%x ??\n", c); + fprintf(stderr, "unrecognised option code %#x ??\n", c); usage(); return SG_LIB_SYNTAX_ERROR; } |