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_vpd_vendor.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_vpd_vendor.c')
-rw-r--r-- | src/sg_vpd_vendor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_vpd_vendor.c b/src/sg_vpd_vendor.c index 1d7bd206..7b58cf90 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 %#02x,%d %s\n", vnp->acron, + printf(" %-10s 0x%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=%#x", num_vpd); + snprintf(name, sizeof(name) - 1, "Vendor VPD page=0x%x", num_vpd); if (0 == alloc_len) alloc_len = DEF_ALLOC_LEN; switch(num_vpd) { |