Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:ARM:Staging
lshw
lswh-logical-name-iface.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lswh-logical-name-iface.patch of Package lshw
From 85edb6a1a5734078a58bad21a5e6918e07f360bc Mon Sep 17 00:00:00 2001 From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> Date: Tue, 30 Apr 2019 17:24:50 +0530 Subject: [PATCH] Display proper logical name of network device This patch adds support to display proper logical name of network devices. Test results: *-l-lan description: Ethernet interface physical id: 2 bus info: vio@30000002 logical name: /proc/device-tree/vdevice/l-lan@30000002 With patch: *-l-lan description: Ethernet interface physical id: 2 bus info: vio@30000002 logical name: /proc/device-tree/vdevice/l-lan@30000002 logical name: eth0 Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> --- src/core/hw.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hw.cc b/src/core/hw.cc index f136383..4522c1a 100644 --- a/src/core/hw.cc +++ b/src/core/hw.cc @@ -1284,8 +1284,8 @@ void hwNode::merge(const hwNode & node) This->handle = node.getHandle(); if (This->description == "") This->description = node.getDescription(); - if (This->logicalnames.size() == 0) - This->logicalnames = node.getLogicalNames(); + for (unsigned int i = 0; i < node.This->logicalnames.size(); i++) + setLogicalName(node.This->logicalnames[i]); if (This->businfo == "") This->businfo = node.getBusInfo(); if (This->physid == "")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor