From 309c5dd00111a5b1f9c1e83252149764d90b492c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 19 Apr 2012 07:38:07 +0000 Subject: [PATCH] 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 --- eeprom/decode-dimms | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {