From 0fe637fa14c5f3433eae0a612c96cf005e697f21 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 10 Dec 2003 07:35:33 +0000 Subject: [PATCH] Ignore VPD checksum for now. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2153 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 55ffa657..a460e25c 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -3882,9 +3882,13 @@ sub vpd_bios_build_id seek (MEM, -32, SEEK_CUR); my $len; if (substr($buf, 0, 5) eq "\xAA\x55VPD" - && ord(substr($buf, 5, 1)) >= 0x30 - && unpack('%8C*', substr($buf, 0x0D, 0x30-0x0D)) == 0) + && ord(substr($buf, 5, 1)) >= 0x30) { + if (unpack('%8C*', substr($buf, 0x0D, 0x30-0x0D)) != 0) + { + printf " Bad VPD checksum (0x%02X)! Please report.\n", + ord(substr($buf, 0x2F, 1)); + } $bbid = substr($buf, 13, 9); $bbid =~ s/[\x00 ]*$//; # right trim $found++;