dmidecode-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dmidecode] [PATCH 1/1] dmidecode: Get baseboard-location-in-chassis fro


From: Xin Li
Subject: [dmidecode] [PATCH 1/1] dmidecode: Get baseboard-location-in-chassis from -s option
Date: Fri, 5 Apr 2019 06:27:21 +0100

From: Xin Li <address@hidden>

String "Location In Chassis" is part of the base board information,
and is available from "dmidecode -t2", but it can't be fetched from -s
option directly. This commit closes this gap.

Signed-off-by: Xin Li <address@hidden>

---

v2:
add commit message.
---
 dmiopt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dmiopt.c b/dmiopt.c
index 2f285f3..6d53c7e 100644
--- a/dmiopt.c
+++ b/dmiopt.c
@@ -162,6 +162,7 @@ static const struct string_keyword opt_string_keyword[] = {
        { "baseboard-version", 2, 0x06 },
        { "baseboard-serial-number", 2, 0x07 },
        { "baseboard-asset-tag", 2, 0x08 },
+       { "baseboard-location-in-chassis", 2, 0x0A },
        { "chassis-manufacturer", 3, 0x04 },
        { "chassis-type", 3, 0x05 },            /* dmi_chassis_type() */
        { "chassis-version", 3, 0x06 },
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]