From fd08479625b5845e4d725ab628628f7ebfccc407 Mon Sep 17 00:00:00 2001 From: Prabhakar pujeri Date: Tue, 15 Oct 2019 14:24:46 +0200 Subject: dmidecode: Fix System Slot Information for PCIe SSD Output for type 9 show for PCIe SSD. SMBIOS spec table 48 describes 2.5" and 3.5" PCIe SSD formats. Signed-off-by: Prabhakar pujeri Signed-off-by: Jean Delvare --- dmidecode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dmidecode.c b/dmidecode.c index aef18f8..68bfa45 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -1906,10 +1906,12 @@ static const char *dmi_slot_length(u8 code) "Other", /* 0x01 */ "Unknown", "Short", - "Long" /* 0x04 */ + "Long", + "2.5\" drive form factor", + "3.5\" drive form factor" /* 0x06 */ }; - if (code >= 0x01 && code <= 0x04) + if (code >= 0x01 && code <= 0x06) return length[code - 0x01]; return out_of_spec; } -- cgit v1.0-41-gc330