aboutsummaryrefslogtreecommitdiff
path: root/src/sg_get_lba_status.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2011-02-06 15:47:05 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2011-02-06 15:47:05 +0000
commit349deaedcf2ed4d72c74c681f65466bf28869642 (patch)
tree6c94f4b27676dd4a78c88d2e5d5b907a258276d0 /src/sg_get_lba_status.c
parent5e078e06e9bf124af0edcab4d9f869322d7a2d96 (diff)
downloadsg3_utils-349deaedcf2ed4d72c74c681f65466bf28869642.tar.gz
bug fixes: sg_verify and sg_decode_sense plus other cleanup
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@376 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_get_lba_status.c')
-rw-r--r--src/sg_get_lba_status.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sg_get_lba_status.c b/src/sg_get_lba_status.c
index dc2f33a9..43a796d8 100644
--- a/src/sg_get_lba_status.c
+++ b/src/sg_get_lba_status.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2010 Douglas Gilbert.
+ * Copyright (c) 2009-2011 Douglas Gilbert.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
@@ -27,7 +27,7 @@
* This program issues the SCSI GET LBA STATUS command to the given SCSI device.
*/
-static char * version_str = "1.02 20100329"; /* sbc2r22 */
+static char * version_str = "1.03 20110204"; /* sbc2r22 */
#define MAX_GLBAS_BUFF_LEN (1024 * 1024)
#define DEF_GLBAS_BUFF_LEN 24
@@ -280,8 +280,8 @@ main(int argc, char * argv[])
"descriptor:\n" " descriptor LBA: 0x");
for (j = 0; j < 8; ++j)
fprintf(stderr, "%02x", glbasBuffp[8 + j]);
- fprintf(stderr, " blocks: 0x%x p_status: %d\n", d_blocks,
- res);
+ fprintf(stderr, " blocks: 0x%x p_status: %d\n",
+ (unsigned int)d_blocks, res);
ret = SG_LIB_CAT_OTHER;
goto the_end;
}
@@ -306,12 +306,12 @@ main(int argc, char * argv[])
printf("0x");
for (j = 0; j < 8; ++j)
printf("%02x", ucp[j]);
- printf(" 0x%x %d\n", d_blocks, res);
+ printf(" 0x%x %d\n", (unsigned int)d_blocks, res);
} else {
printf("descriptor LBA: 0x");
for (j = 0; j < 8; ++j)
printf("%02x", ucp[j]);
- printf(" blocks: %d", d_blocks);
+ printf(" blocks: %u", (unsigned int)d_blocks);
switch (res) {
case 0:
printf(" mapped\n");