From 69c584d5aef81d758465facc0af314b7fc34ef08 Mon Sep 17 00:00:00 2001 From: Philip Edelbrock Date: Sun, 28 Feb 1999 16:25:26 +0000 Subject: [PATCH] (Phil) Fixed checksum calculation. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@277 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/eeprom/decode-dimms.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prog/eeprom/decode-dimms.pl b/prog/eeprom/decode-dimms.pl index 71c5f724..ee5d9c74 100755 --- a/prog/eeprom/decode-dimms.pl +++ b/prog/eeprom/decode-dimms.pl @@ -2,7 +2,7 @@ # # Copyright 1998, 1999 Philip Edelbrock # -# Version 0.3 +# Version 0.4 # # EEPROM data decoding for SDRAM DIMM modules. # @@ -306,7 +306,7 @@ for $i ( 0 .. $#dimm_list ) { print "\tSPD Revision code:\t\t\t\t$bytes[14]\n"; print "\tEEPROM Checksum of bytes 0-62:\t\t\t"; - printf("0x%.4X (verses calculated: 0x%.4X)\n",$bytes[15],$dimm_checksum); + printf("0x%.2X (verses calculated: 0x%.2X)\n",$bytes[15],$dimm_checksum & 255); # Decode next 16 bytes (64-79) $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/data64-79`;