[PATCH 7/7] decode-dimms: Strip former manufacturer name in side-by-side mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Strip former manufacturer name in side-by-side output mode, to avoid
overly large columns.
---
 eeprom/decode-dimms |    1 +
 1 file changed, 1 insertion(+)

--- i2c-tools.orig/eeprom/decode-dimms	2012-11-15 11:47:17.878976012 +0100
+++ i2c-tools/eeprom/decode-dimms	2012-11-15 11:47:19.684976039 +0100
@@ -342,6 +342,7 @@ sub manufacturer_ddr3($$)
 	return "Invalid" if parity($code) != 1;
 	return "Unknown" if ($code & 0x7F) - 1 > $vendors[$count & 0x7F];
 	$manufacturer = $vendors[$count & 0x7F][($code & 0x7F) - 1];
+	$manufacturer =~ s/ \(former .*\)$// if $opt_side_by_side;
 	$manufacturer .= "? (Invalid parity)" if parity($count) != 1;
 	return $manufacturer;
 }

-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux