Skip to contentSkip to conversation

SPD report slightly improved

PATCH New Nick Kurshev 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SPD report slightly improved

Hello!

This patch improves HTML form of SPD information report by locating info about every chip in independed table. IMHO it improves readability of report!
Please apply this patch into the next release of lm_sensors.

Best regards! Nick

eeprom/decode-dimms.pl renamed from eeprom/decode-dimms.pl.old +7 -5
@@ -100,10 +100,9 @@
 PC DIMM Serial Presence Detect Tester/Decoder
 Written by Philip Edelbrock.  Copyright 1998, 1999.
 Modified by Christian Zuckschwerdt <[email protected]>
-Version 2.6.3
+Version 2.6.3.1
 ';
 
-print "<table border=1>\n" if $opt_html;
 
 $dimm_count=0;
 $_=`ls /proc/sys/dev/sensors/`;
@@ -115,7 +114,10 @@
 		$dimm_checksum=0;
 		$dimm_count=$dimm_count + 1;
 		
-		printl "Decoding EEPROM", "/proc/sys/dev/sensors/$dimm_list[$i]";
+		print "<B><U><BR><BR>" if $opt_html;
+		printl "Decoding EEPROM" , " /proc/sys/dev/sensors/$dimm_list[$i]";
+		print "</B></U>" if $opt_html;
+		print "<table border=1>\n" if $opt_html;
 		if (/^[^-]+-[^-]+-[^-]+-([^-]+)$/) {
 			$dimm_num=$1 - 49;
 			printl "Guessing DIMM is in", "bank $dimm_num";
@@ -472,10 +474,10 @@
 		printl $l, $temp;
 		
 		
+print "</table>\n" if $opt_html;
 	}
 }
-printl "Number of SDRAM DIMMs detected and decoded", $dimm_count;
+printl "Number of SDRAM DIMMs detected and decoded ", $dimm_count;
 
-print "</table>\n" if $opt_html;
 print "</body></html>\n" if $opt_body;
 print "\nTry '$0 --format' for html output.\n" unless $opt_html;
#1 lore raw

PATCH 1/1 SPD report slightly improved

Quoted 5 lines

This patch improves HTML form of SPD information report by locating info about every chip in independed table. IMHO it improves readability of report!
Please apply this patch into the next release of lm_sensors.

Thanks for the patch. The idea is good indeed, the readability is definitely improved. I modified your patch a little, because it was incorrect HTML-output-wise, but kept the idea of course. I did some other improvements by the way, and I hope everyone will like them. It has been commited to the CVS tree, and will of course go to 2.6.6, which should be released by the end of November.

You may test the new version if you want. It is available here:
http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/prog/eeprom/decode-dimms.pl

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/