Changeset 5026
- Timestamp:
- 11/19/07 23:20:37 (1 year ago)
- Files:
-
- i2c-tools/trunk/CHANGES (modified) (1 diff)
- i2c-tools/trunk/eeprom/decode-vaio.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
i2c-tools/trunk/CHANGES
r5017 r5026 5 5 decode-dimms: Fix DDR2 SDRAM module speed decoding 6 6 Update manufacturer IDs. 7 decode-vaio: Private data might not be readable by non-root users 7 8 i2cset: Final status messages go to stdout 8 9 Return success even when readback fails or doesn't match i2c-tools/trunk/eeprom/decode-vaio.pl
r4493 r5026 1 1 #!/usr/bin/perl -w 2 2 # 3 # Copyright (C) 2002-200 6Jean Delvare <khali@linux-fr.org>3 # Copyright (C) 2002-2007 Jean Delvare <khali@linux-fr.org> 4 4 # 5 5 # This program is free software; you can redistribute it and/or modify … … 44 44 # Version 1.4 2006-09-20 Jean Delvare <khali@linux-fr.org> 45 45 # Detect and skip false positives (e.g. EDID EEPROMs). 46 # Version 1.5 2007-11-19 Jean Delvare <khali@linux-fr.org> 47 # UUID and serial number might be hidden 46 48 # 47 49 # EEPROM data decoding for Sony Vaio laptops. … … 82 84 use vars qw($sysfs $found); 83 85 86 use constant ONLYROOT => "Readable only by root"; 87 84 88 sub print_item 85 89 { … … 176 180 } 177 181 178 return($string); 182 if ($string eq '00000000-0000-0000-0000-000000000000') 183 { 184 return(ONLYROOT); 185 } 186 else 187 { 188 return($string); 189 } 179 190 } 180 191 … … 188 199 189 200 print_item('Machine Name', $name); 190 print_item('Serial Number', decode_string($bus, $addr, 192, 32)); 201 my $serial = decode_string($bus, $addr, 192, 32); 202 print_item('Serial Number', $serial ? $serial : ONLYROOT); 191 203 print_item('UUID', decode_uuid($bus, $addr, 16)); 192 204 my $revision = decode_string($bus, $addr, 160, 10); … … 202 214 { 203 215 print("Sony Vaio EEPROM Decoder\n"); 204 print("Copyright (C) 2002-200 6Jean Delvare\n");205 print("Version 1. 4\n\n");216 print("Copyright (C) 2002-2007 Jean Delvare\n"); 217 print("Version 1.5\n\n"); 206 218 } 207 219
