From 95996fac09141efb4ac55b49b39fed9acb9a293a Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Sun, 20 Sep 2009 10:10:50 +0000 Subject: debian autogen.sh housecleaning, part 1 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@302 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_get_lba_status.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sg_get_lba_status.c') diff --git a/src/sg_get_lba_status.c b/src/sg_get_lba_status.c index 574a0bc6..9f85f8c5 100644 --- a/src/sg_get_lba_status.c +++ b/src/sg_get_lba_status.c @@ -85,7 +85,7 @@ usage() " --maxlen=LEN|-m LEN max response length (allocation " "length in cdb)\n" " (def: 0 -> %d bytes)\n", - DEF_RLUNS_BUFF_LEN ); + DEF_GLBAS_BUFF_LEN ); fprintf(stderr, " --quiet|-q output 1 if LBA mapped, 0 " "if unmapped\n" " --raw|-r output in binary\n" @@ -141,7 +141,7 @@ decode_lba_status_desc(const unsigned char * ucp, uint64_t * slbap, int main(int argc, char * argv[]) { - int sg_fd, k, j, res, c, num_descs; + int sg_fd, k, j, res, c, rlen, num_descs; int do_hex = 0; int64_t ll; uint64_t lba = 0; @@ -225,9 +225,9 @@ main(int argc, char * argv[]) return SG_LIB_SYNTAX_ERROR; } if (maxlen > DEF_GLBAS_BUFF_LEN) { - glbasBuffp = (unsigned char *)calloc(max_len, 1); + glbasBuffp = (unsigned char *)calloc(maxlen, 1); if (NULL == glbasBuffp) { - fprintf(stderr, "unable to allocate %d bytes on heap\n"); + fprintf(stderr, "unable to allocate %d bytes on heap\n", maxlen); return SG_LIB_SYNTAX_ERROR; } } @@ -271,7 +271,7 @@ main(int argc, char * argv[]) fprintf(stderr, "response length %d bytes\n", rlen); if (rlen > maxlen) fprintf(stderr, " ... which is greater than maxlen " - "(allocation length %d), truncation\n", rlen, maxlen); + "(allocation length %d), truncation\n", maxlen); } if (rlen > maxlen) rlen = maxlen; -- cgit v1.2.3