From 7987d0d6429a7b1c74168ceaff5992c1637c3904 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 13 Feb 2013 13:37:09 +0000 Subject: [PATCH] Prevent hang on reserved DDR3 module type Function sprint doesn't exist, sprintf was intended. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6121 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + eeprom/decode-dimms | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index eddc335..60fa164 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,7 @@ SVN HEAD Update manufacturer IDs Remove duplicate "ns" in SDR timings Fix decoding of SDR SPD revision + Prevent hang on reserved DDR3 module type i2cdetect: Clarify the SMBus commands used for probing by default i2c-dev.h: Minimize differences with kernel flavor Move SMBus helper functions to include/i2c/smbus.h diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index e28bbfd..3eed675 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -1176,7 +1176,7 @@ sub decode_ddr3_sdram($) printl("Module Type", ($bytes->[3] <= $#module_types) ? $module_types[$bytes->[3]] : - sprint("Reserved (0x%.2X)", $bytes->[3])); + sprintf("Reserved (0x%.2X)", $bytes->[3])); # speed prints("Memory Characteristics");