Blame dmidecode-warn-on-unsupported-smbios-version.patch
|
Jarod Wilson |
68313a |
--- dmidecode/dmidecode.c~ 2008/11/14 10:27:31 1.140
|
|
Jarod Wilson |
68313a |
+++ dmidecode/dmidecode.c 2009/04/30 08:19:37 1.141
|
|
Jarod Wilson |
68313a |
@@ -66,6 +66,8 @@
|
|
Jarod Wilson |
68313a |
#define out_of_spec "<OUT OF SPEC>"
|
|
Jarod Wilson |
68313a |
static const char *bad_index = "<BAD INDEX>";
|
|
Jarod Wilson |
68313a |
|
|
Jarod Wilson |
68313a |
+#define SUPPORTED_SMBIOS_VER 0x0206
|
|
Jarod Wilson |
68313a |
+
|
|
Jarod Wilson |
68313a |
/*
|
|
Jarod Wilson |
68313a |
* Type-independant Stuff
|
|
Jarod Wilson |
68313a |
*/
|
|
Jarod Wilson |
68313a |
@@ -4005,6 +4007,13 @@
|
|
Jarod Wilson |
68313a |
u8 *data;
|
|
Jarod Wilson |
68313a |
int i = 0;
|
|
Jarod Wilson |
68313a |
|
|
Jarod Wilson |
68313a |
+ if (ver > SUPPORTED_SMBIOS_VER)
|
|
Jarod Wilson |
68313a |
+ {
|
|
Jarod Wilson |
68313a |
+ printf("# SMBIOS implementations newer than version %u.%u are not\n"
|
|
Jarod Wilson |
68313a |
+ "# fully supported by this version of dmidecode.\n",
|
|
Jarod Wilson |
68313a |
+ SUPPORTED_SMBIOS_VER >> 8, SUPPORTED_SMBIOS_VER & 0xFF);
|
|
Jarod Wilson |
68313a |
+ }
|
|
Jarod Wilson |
68313a |
+
|
|
Jarod Wilson |
68313a |
if (opt.flags & FLAG_DUMP_BIN)
|
|
Jarod Wilson |
68313a |
{
|
|
Jarod Wilson |
68313a |
dmi_table_dump(base, len, devmem);
|