summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2010-04-20 11:43:04 +0200
committerDavid Sommerseth <davids@redhat.com>2010-04-20 11:43:04 +0200
commit3aabb2ff8c7fdb9c68c38c2cdd13f64f7c74586d (patch)
treeebd675e5d09308916e09ded14f82d5a2332a8b83
parenta0b0fd9762f1778efbfd368df9e6a4daba104655 (diff)
downloadpython-dmidecode-3aabb2ff8c7fdb9c68c38c2cdd13f64f7c74586d.tar.gz
python-dmidecode-3aabb2ff8c7fdb9c68c38c2cdd13f64f7c74586d.tar.xz
python-dmidecode-3aabb2ff8c7fdb9c68c38c2cdd13f64f7c74586d.zip
Add a little hint where decoding got aborted
-rw-r--r--src/dmidecode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dmidecode.c b/src/dmidecode.c
index 02dd9b0..b89c163 100644
--- a/src/dmidecode.c
+++ b/src/dmidecode.c
@@ -4890,8 +4890,8 @@ static void dmi_table(Log_t *logp, int type, u32 base, u16 len, u16 num, u16 ver
*/
if(h.length < 4) {
log_append(logp, LOGFL_NORMAL, LOG_WARNING,
- "Invalid entry length (%i). DMI table is broken! Stop.",
- (unsigned int)h.length);
+ "Invalid entry length (%i) for type %i. DMI table is broken! Stop.",
+ (unsigned int)h.length, type);
break;
}