Bug 422610 - kinfocenter5 show wrong USB-Device sub version number
Summary: kinfocenter5 show wrong USB-Device sub version number
Status: CLOSED FIXED
Alias: None
Product: kinfocenter
Classification: Applications
Component: USB Devices (show other bugs)
Version: 5.18.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: David Hubner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-08 04:11 UTC by Dieter Nützel
Modified: 2020-06-22 00:41 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.19.1


Attachments
kinfocenter5-5.18.5-1.12.x86_64.png (118.08 KB, image/png)
2020-06-08 04:11 UTC, Dieter Nützel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter Nützel 2020-06-08 04:11:54 UTC
Created attachment 129133 [details]
kinfocenter5-5.18.5-1.12.x86_64.png

SUMMARY
kinfocenter5
(openSUSE Tumbleweed version 5.18.5-1.2.x86_64 and several former)
show wrong USB device sub version number (the '.' dot is @ the wrong position.

STEPS TO REPRODUCE
1. open kinfocenter5
2. open Devices
3. open USB-Devices

OBSERVED RESULT

USB 1.01 / 2.01 / 3.01 / etc.

(see attachment)


EXPECTED RESULT

USB 1.10 / 2.10 / 3.10 / etc.

lsusb.py
(examples)

    1-1.2             04b4:0060 00 2IFs [USB 1.10,   1.5 Mbps, 100mA] (Areson USB Device)
    1-1.4             04a9:220d ff 1IF  [USB 1.10,    12 Mbps, 500mA] (Canon CanoScan)
usb3              1d6b:0003 09 1IF  [USB 3.10, 10000 Mbps,   0mA] (xhci-hcd 0000:0f:00.0) hub


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  openSUSE Tumbleweed / 5.18.5
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 Harald Sitter 2020-06-09 06:35:57 UTC
Git commit 1a42afef690644074a97559cbace45d5a256f837 by Harald Sitter.
Committed on 08/06/2020 at 10:42.
Pushed by sitter into branch 'Plasma/5.19'.

usb: parse version from sysfs entries correctly

same format string as on the kernel side.
the previous code would lose trailing zeros because of course .1==.10 but
versions aren't real numbers so that isn't applicable at all.
FIXED-IN: 5.19.1

M  +2    -3    Modules/usbview/usbdevices.cpp

https://invent.kde.org/plasma/kinfocenter/commit/1a42afef690644074a97559cbace45d5a256f837
Comment 2 Dieter Nützel 2020-06-22 00:41:49 UTC
CLOSED-WITH: 5.19.1 (openSUSE Tumbleweed, here.)