From 017aa7827624e209683c4376074d598ed518e915 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Wed, 22 Jul 2009 02:22:05 +0000 Subject: 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 --- src/sg_sat_set_features.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sg_sat_set_features.c') 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; } -- cgit v1.2.3