]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - dmidecode/patches/dmidecode-2.10-warn-on-unsupported-smbios-version.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / dmidecode / patches / dmidecode-2.10-warn-on-unsupported-smbios-version.patch
1 --- dmidecode/dmidecode.c~ 2008/11/14 10:27:31 1.140
2 +++ dmidecode/dmidecode.c 2009/04/30 08:19:37 1.141
3 @@ -66,6 +66,8 @@
4 #define out_of_spec "<OUT OF SPEC>"
5 static const char *bad_index = "<BAD INDEX>";
6
7 +#define SUPPORTED_SMBIOS_VER 0x0206
8 +
9 /*
10 * Type-independant Stuff
11 */
12 @@ -4005,6 +4007,13 @@
13 u8 *data;
14 int i = 0;
15
16 + if (ver > SUPPORTED_SMBIOS_VER)
17 + {
18 + printf("# SMBIOS implementations newer than version %u.%u are not\n"
19 + "# fully supported by this version of dmidecode.\n",
20 + SUPPORTED_SMBIOS_VER >> 8, SUPPORTED_SMBIOS_VER & 0xFF);
21 + }
22 +
23 if (opt.flags & FLAG_DUMP_BIN)
24 {
25 dmi_table_dump(base, len, devmem);