diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2010-09-24 18:07:30 -0700 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2010-09-24 18:07:30 -0700 |
commit | d45d7f8b32fb67f517981b22d3d04a652b84bce5 (patch) | |
tree | 2ad5e2898b2b9f39724f9a5cdf4168cb4cebaed8 /devices | |
parent | 5be3fd1081f64fcb0e4cd82e223a2684802a1d5e (diff) | |
download | powertop-d45d7f8b32fb67f517981b22d3d04a652b84bce5.tar.gz |
hide the "Linux" vendor in usb devices; those are virtual vendor strings not real ones.
Diffstat (limited to 'devices')
-rw-r--r-- | devices/usb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/devices/usb.cpp b/devices/usb.cpp index 2b0acdd..3fdf133 100644 --- a/devices/usb.cpp +++ b/devices/usb.cpp @@ -42,6 +42,8 @@ usbdevice::usbdevice(const char *_name, const char *path, const char *devid) file.open(filename, ios::in); if (file) { file.getline(vendor, 2047); + if (strstr(vendor, "Linux ")) + vendor[0] = 0; file.close(); }; sprintf(filename, "%s/product", path); |