diff options
author | Jean Delvare <jdelvare@suse.de> | 2006-01-20 22:47:07 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2006-01-20 22:47:07 +0000 |
commit | eada401dc4260bd7952892dfecd61b10a14d9917 (patch) | |
tree | e8a443b6d116413b10cad0b83ce55f306c33c42d /vpddecode.c | |
parent | af44f4be8d7ae8d0b7afea52b170bbe312970adc (diff) | |
download | dmidecode-git-eada401dc4260bd7952892dfecd61b10a14d9917.tar.gz |
Assume a constant length of 12 characters for the "Default Flash Image
File Name" entry. The 13th character never contained anything useful, so
it probably has a different meaning (unknown for now).
Diffstat (limited to 'vpddecode.c')
-rw-r--r-- | vpddecode.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vpddecode.c b/vpddecode.c index 437acb3..4b3b5bc 100644 --- a/vpddecode.c +++ b/vpddecode.c @@ -289,14 +289,11 @@ static int decode(const u8 *p) print_entry("Motherboard Serial Number", p+0x1D, 11); print_entry("Machine Type/Model", p+0x28, 7); - if(p[5]<0x45) + if(p[5]<0x44) return 1; print_entry("BIOS Release Date", p+0x30, 8); - /* This one seems to be a variable length field, it is usually 13 - byte long but was seen 12 byte long on an xSeries 440. */ - print_entry("Default Flash Image File Name", p+0x38, - 0x38+13<p[5]-1?13:p[5]-1-0x38); + print_entry("Default Flash Image File Name", p+0x38, 12); return 1; } |