aboutsummaryrefslogtreecommitdiff
path: root/src/sg_vpd_vendor.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2009-07-22 02:22:05 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2009-07-22 02:22:05 +0000
commit017aa7827624e209683c4376074d598ed518e915 (patch)
tree9ad686b4865d2384dc72058ef8284996f4d0da79 /src/sg_vpd_vendor.c
parent137715a6cb23b4d53521fdeffbfb6164bce4781b (diff)
downloadsg3_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_vpd_vendor.c')
-rw-r--r--src/sg_vpd_vendor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_vpd_vendor.c b/src/sg_vpd_vendor.c
index 7b58cf90..1d7bd206 100644
--- a/src/sg_vpd_vendor.c
+++ b/src/sg_vpd_vendor.c
@@ -156,7 +156,7 @@ svpd_enumerate_vendor()
printf("\nVendor specific VPD pages:\n");
seen = 1;
}
- printf(" %-10s 0x%02x,%d %s\n", vnp->acron,
+ printf(" %-10s %#02x,%d %s\n", vnp->acron,
vnp->value, vnp->subvalue, vnp->name);
}
}
@@ -577,7 +577,7 @@ svpd_decode_vendor(int sg_fd, int num_vpd, int subvalue, int maxlen,
if (vnp && vnp->name)
strcpy(name, vnp->name);
else
- snprintf(name, sizeof(name) - 1, "Vendor VPD page=0x%x", num_vpd);
+ snprintf(name, sizeof(name) - 1, "Vendor VPD page=%#x", num_vpd);
if (0 == alloc_len)
alloc_len = DEF_ALLOC_LEN;
switch(num_vpd) {