Types 126 and 127 are at the end of the list, their reference section changes as new structure types are being added to the specification. Just omit the section number for them, so that we don't have to update it with every new version of the specification.
Signed-off-by: Jean Delvare <jdelv...@suse.de> --- dmidecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- dmidecode.orig/dmidecode.c 2022-05-30 13:06:10.898177601 +0200 +++ dmidecode/dmidecode.c 2022-05-30 13:09:01.075307503 +0200 @@ -5348,11 +5348,11 @@ static void dmi_decode(const struct dmi_ dmi_firmware_components(data[0x17], data + 0x18); break; - case 126: /* 7.44 Inactive */ + case 126: pr_handle_name("Inactive"); break; - case 127: /* 7.45 End Of Table */ + case 127: pr_handle_name("End Of Table"); break; -- Jean Delvare SUSE L3 Support _______________________________________________ https://lists.nongnu.org/mailman/listinfo/dmidecode-devel