summaryrefslogtreecommitdiff
path: root/vpddecode.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2006-01-21 13:55:24 +0000
committerJean Delvare <jdelvare@suse.de>2006-01-21 13:55:24 +0000
commit18e43d9d4655e5e45b6c6d41a8ff35aff94c7bf9 (patch)
tree2639ac513246ce6f2f018deb34d8aa65f3234004 /vpddecode.c
parenteada401dc4260bd7952892dfecd61b10a14d9917 (diff)
downloaddmidecode-git-18e43d9d4655e5e45b6c6d41a8ff35aff94c7bf9.tar.gz
The mysterious last character of xSeries records may be a BIOS revision.
Display it as such when present and non zero, and ask users to report. Adjust an error message.
Diffstat (limited to 'vpddecode.c')
-rw-r--r--vpddecode.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vpddecode.c b/vpddecode.c
index 4b3b5bc..32adfa7 100644
--- a/vpddecode.c
+++ b/vpddecode.c
@@ -294,6 +294,12 @@ static int decode(const u8 *p)
print_entry("BIOS Release Date", p+0x30, 8);
print_entry("Default Flash Image File Name", p+0x38, 12);
+
+ if(p[5]>=0x46 && p[0x44]!=0x00)
+ {
+ printf("%s: %u (Please report!)\n", "BIOS Revision",
+ p[0x44]);
+ }
return 1;
}
@@ -343,7 +349,7 @@ int main(int argc, char * const argv[])
&& fp+p[5]-1<=0xFFFF)
{
if(fp%16 && !(opt.flags & FLAG_QUIET))
- printf("Unaligned address (%#lx)! Please report.\n",
+ printf("Unaligned address (%#lx), please report!\n",
0xf0000+fp);
if(opt.flags & FLAG_DUMP)
{