From 000c9297559cd07a2d3317596aae569ad43d002f Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 19 Nov 2007 22:22:29 +0000 Subject: [PATCH] The timestamp is only 18-byte long. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5029 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + eeprom/decode-vaio.pl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 5f6f3cd..00b80fd 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ SVN Update manufacturer IDs. decode-vaio: Private data might not be readable by non-root users Print the asset tag + Fix the timestamp decoding i2cset: Final status messages go to stdout Return success even when readback fails or doesn't match i2c-stub-from-dump: New helper script to use with i2c-stub diff --git a/eeprom/decode-vaio.pl b/eeprom/decode-vaio.pl index 96e1cd6..1a91487 100755 --- a/eeprom/decode-vaio.pl +++ b/eeprom/decode-vaio.pl @@ -46,6 +46,7 @@ # Version 1.5 2007-11-19 Jean Delvare # UUID and serial number might be hidden # The model name is actually the first half of the asset tag +# The timestamp is only 18-byte long # # EEPROM data decoding for Sony Vaio laptops. # @@ -225,7 +226,7 @@ sub vaio_decode print_item('Asset Tag', decode_string($bus, $addr, 170, 4). decode_hexa($bus, $addr, 174, 12)); print_item('OEM Data', decode_string($bus, $addr, 32, 16)); - print_item('Timestamp', decode_string($bus, $addr, 224, 32)); + print_item('Timestamp', decode_string($bus, $addr, 224, 18)); return 1; }