summaryrefslogtreecommitdiff
path: root/utils/imxtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-12-13 00:23:33 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-12-13 00:23:33 +0100
commit2a52b937e427bc9738b57f79a052fbc5b6e02f8e (patch)
tree3f1e24f3d8607de83b89a3e1a82c839f7b23c5e7 /utils/imxtools
parentc644f6b7f1506ca2e9b5f8a53c6e28f8acef42ca (diff)
imxtools/scsitool: retrieve the minimum amount of inquiry data
Some device only report the minimum (36 bytes) amount of inquiry data so don't ask for more Change-Id: Ie74d659f6e27b077acba160aeb87d1e7edf82e66
Diffstat (limited to 'utils/imxtools')
-rw-r--r--utils/imxtools/scsitools/scsitool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/imxtools/scsitools/scsitool.c b/utils/imxtools/scsitools/scsitool.c
index 7fc68f8c37..5fe3f6fa8a 100644
--- a/utils/imxtools/scsitools/scsitool.c
+++ b/utils/imxtools/scsitools/scsitool.c
@@ -165,7 +165,7 @@ int do_sense_analysis(int status, uint8_t *sense, int sense_size)
int stmp_inquiry(uint8_t *dev_type, char vendor[9], char product[17])
{
- unsigned char buffer[56];
+ unsigned char buffer[36];
uint8_t cdb[10];
memset(cdb, 0, sizeof(cdb));
cdb[0] = 0x12;