Blame SOURCES/0021-report-product-model-on-Power-systems.patch

121cca
From 3775782808e8b9b8aa72ed2ce23e145433e193cf Mon Sep 17 00:00:00 2001
121cca
From: Lyonel Vincent <lyonel@ezix.org>
121cca
Date: Wed, 27 May 2020 01:16:20 +0200
121cca
Subject: [PATCH 21/65] report product model on Power systems
121cca
121cca
Github PR #54
121cca
---
121cca
 src/core/device-tree.cc | 2 +-
121cca
 1 file changed, 1 insertion(+), 1 deletion(-)
121cca
121cca
diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc
121cca
index e7227e1..027ad16 100644
121cca
--- a/src/core/device-tree.cc
121cca
+++ b/src/core/device-tree.cc
121cca
@@ -1396,7 +1396,7 @@ static void get_ibm_model(hwNode & n)
121cca
   {
121cca
     if (ibm_model_defs[i].model == machinetype || ibm_model_defs[i].model == model)
121cca
     {
121cca
-      n.setProduct(ibm_model_defs[i].modelname);
121cca
+      n.setProduct(n.getProduct() + " (" + ibm_model_defs[i].modelname + ")");
121cca
       n.addHint("icon", string(ibm_model_defs[i].icon));
121cca
       n.setConfig("chassis", ibm_model_defs[i].chassis);
121cca
       return;
121cca
-- 
121cca
2.33.1
121cca