From 501953f54cde3f8d47adac2adca71a28ad87e03e Mon Sep 17 00:00:00 2001
From: dpgilbert <dpgilbert@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sun, 29 Dec 2002 02:14:47 +0000
Subject: [PATCH] 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
---
 sm5/scsiprint.c   | 10 +++++-----
 sm5/scsiprint.cpp | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/sm5/scsiprint.c b/sm5/scsiprint.c
index 3d6fec3ab..d2107b425 100644
--- a/sm5/scsiprint.c
+++ b/sm5/scsiprint.c
@@ -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);
diff --git a/sm5/scsiprint.cpp b/sm5/scsiprint.cpp
index 040692aa7..080383897 100644
--- a/sm5/scsiprint.cpp
+++ b/sm5/scsiprint.cpp
@@ -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);
-- 
GitLab