summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-04-19 07:38:07 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-04-19 07:38:07 +0000
commite53583395c952d1ef001f2c6d8064653b88dad6b (patch)
tree4b75ad130f36fdae1f7d728963efb3214baa9316
parent8eafd85c7a700e928ff7330deb1ddd91d31da854 (diff)
downloadi2c-tools-e53583395c952d1ef001f2c6d8064653b88dad6b.tar.gz
decode-dimms: Use short name in side-by-side output mode also when
reading from a dump file. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6043 7894878c-1315-0410-8ee3-d5d059ff63e0
-rwxr-xr-xeeprom/decode-dimms3
1 files changed, 2 insertions, 1 deletions
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index 4676fac..ff66d45 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -40,6 +40,7 @@ require 5.004;
use strict;
use POSIX qw(ceil);
use Fcntl qw(:DEFAULT :seek);
+use File::Basename;
use vars qw($opt_html $opt_bodyonly $opt_side_by_side $opt_merge
$opt_igncheck $use_sysfs $use_hexdump $sbs_col_width
@vendors %decode_callback $revision @dimm $current %hexdump_cache);
@@ -1703,7 +1704,7 @@ EOF
exit;
}
- push @dimm, { eeprom => $_, file => $_ } if $use_hexdump;
+ push @dimm, { eeprom => basename($_), file => $_ } if $use_hexdump;
}
if ($opt_html && !$opt_bodyonly) {