Changeset 5690
- Timestamp:
- 03/20/09 15:08:17 (4 years ago)
- Files:
-
- 1 modified
-
i2c-tools/trunk/eeprom/decode-dimms (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c-tools/trunk/eeprom/decode-dimms
r5689 r5690 1613 1613 1614 1614 my $dimm_count = 0; 1615 my $dir; 1616 if (!$use_hexdump) { 1615 1616 sub get_dimm_list 1617 { 1618 my $dir; 1619 1617 1620 if ($use_sysfs) { 1618 1621 $dir = '/sys/bus/i2c/drivers/eeprom'; … … 1622 1625 1623 1626 if (-d $dir) { 1624 @dimm_list =split(/\s+/, `ls $dir`);1627 return split(/\s+/, `ls $dir`); 1625 1628 } elsif (! -d '/sys/module/eeprom') { 1626 1629 print "No EEPROM found, are you sure the eeprom module is loaded?\n"; … … 1628 1631 } 1629 1632 } 1633 1634 @dimm_list = get_dimm_list() unless $use_hexdump; 1630 1635 1631 1636 for my $i (0 .. $#dimm_list) {
