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

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