hardinfo

Check-in [215d179605]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:quote lsusb -v output so it is safe for hardinfo.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:215d17960509c27b7e2629b8046779950c1a28b9
User & Date: jamesbond 2015-02-19 11:42:42
Context
2015-02-21
03:02
correct temperature interpretation in sysfs thermal zone. check-in: 0940fdba89 user: jamesbond tags: trunk
2015-02-19
11:42
quote lsusb -v output so it is safe for hardinfo. check-in: 215d179605 user: jamesbond tags: trunk
07:18
sensors.c: read sensors from sys/thermal, also fix read_sensors_hwmon to read both from /sys/class/hwmon and /sys/class/hwmon/device. check-in: e53cf0fadd user: jamesbond tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to modules/devices/usb.c.

336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
        if (!(lsusb_path = find_program("lsusb"))) {
            DEBUG("lsusb not found");

            return FALSE;
        }
    }

    temp = g_strdup_printf("%s -v", lsusb_path);
    if (!(lsusb = popen(temp, "r"))) {
        DEBUG("cannot run %s", lsusb_path);

        g_free(temp);
        return FALSE;
    }








|







336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
        if (!(lsusb_path = find_program("lsusb"))) {
            DEBUG("lsusb not found");

            return FALSE;
        }
    }

    temp = g_strdup_printf("%s -v | tr '[]' '()'", lsusb_path);
    if (!(lsusb = popen(temp, "r"))) {
        DEBUG("cannot run %s", lsusb_path);

        g_free(temp);
        return FALSE;
    }