Skip to content
Snippets Groups Projects
Commit 501953f5 authored by dpgilbert's avatar dpgilbert
Browse files

correct 4 byte integer decoding for LOG SENSE in start/stop cycle

counter page.


git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@386 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent cc94c05c
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
#define GBUF_SIZE 65535
const char* CVSid4="$Id: scsiprint.c,v 1.12 2002/12/19 00:05:19 pjwilliams Exp $"
const char* CVSid4="$Id: scsiprint.c,v 1.13 2002/12/29 02:14:47 dpgilbert Exp $"
CVSID3 CVSID4 CVSID5 CVSID6;
// control block which points to external global control variables
......@@ -175,10 +175,10 @@ void scsiGetStartStopData ( int device)
}
recommendedStartStop= (UINT32) gBuf[28]<< 24 | gBuf[29] << 8 |
gBuf[30] << 16 | gBuf[31];
currentStartStop= (UINT32) gBuf[36]<< 24 | gBuf[37] << 8 |
gBuf[38] << 16 | gBuf[39];
recommendedStartStop= (UINT32) gBuf[28]<< 24 | gBuf[29] << 16 |
gBuf[30] << 8 | gBuf[31];
currentStartStop= (UINT32) gBuf[36]<< 24 | gBuf[37] << 16 |
gBuf[38] << 8 | gBuf[39];
printf("Current start stop count: %u times\n", currentStartStop);
printf("Recommended start stop count: %u times\n", recommendedStartStop);
......
......@@ -36,7 +36,7 @@
#define GBUF_SIZE 65535
const char* CVSid4="$Id: scsiprint.cpp,v 1.12 2002/12/19 00:05:19 pjwilliams Exp $"
const char* CVSid4="$Id: scsiprint.cpp,v 1.13 2002/12/29 02:14:47 dpgilbert Exp $"
CVSID3 CVSID4 CVSID5 CVSID6;
// control block which points to external global control variables
......@@ -175,10 +175,10 @@ void scsiGetStartStopData ( int device)
}
recommendedStartStop= (UINT32) gBuf[28]<< 24 | gBuf[29] << 8 |
gBuf[30] << 16 | gBuf[31];
currentStartStop= (UINT32) gBuf[36]<< 24 | gBuf[37] << 8 |
gBuf[38] << 16 | gBuf[39];
recommendedStartStop= (UINT32) gBuf[28]<< 24 | gBuf[29] << 16 |
gBuf[30] << 8 | gBuf[31];
currentStartStop= (UINT32) gBuf[36]<< 24 | gBuf[37] << 16 |
gBuf[38] << 8 | gBuf[39];
printf("Current start stop count: %u times\n", currentStartStop);
printf("Recommended start stop count: %u times\n", recommendedStartStop);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment