- 15 Jul, 2022 1 commit
-
-
Bastien Nocera authored
-
- 13 Jul, 2022 2 commits
-
-
Bastien Nocera authored
-
Bastien Nocera authored
We forgot to "steal" the pointer before returning from the function successfully, so the file descriptor was closed. Oops. Fixes: cc112408 ("fake-input-accelerometer: Simplify error paths")
-
- 24 Jun, 2022 1 commit
-
-
Bastien Nocera authored
In https://github.com/python/cpython/commit/664448d81f41c5fa971d8523a71b0f19e76cc136 the "errors" attribute was removed from the _Outcome object. Adapt the code to print the daemon log after a failed run().
-
- 04 Apr, 2022 1 commit
-
-
Bastien Nocera authored
And don't skip tests if any test dependencies are missing.
-
- 29 Mar, 2022 2 commits
-
-
Bastien Nocera authored
sysfs usually appends newlines at the end of attributes to make them easier to consume, but the test suite can't test for that. ** (iio-sensor-proxy:4882): WARNING **: 14:14:46.792: Possible failure in string write of 'accel_3d-dev0 ' Should be 'accel_3d-dev0' written to /sys/devices/platform/AMDI0010:02/i2c-2/i2c-BMA250E:00/0018:6243:0001.0002/HID-SENSOR-200073.2.auto/iio:device0/trigger/current_trigger Closes: #347 Fixes: ac053f8a
-
Bastien Nocera authored
-
- 25 Mar, 2022 14 commits
-
-
Bastien Nocera authored
-
Bastien Nocera authored
From Coverity: iio-sensor-proxy-3.3/src/iio-sensor-proxy.c:727:16: warning[deadcode.DeadStores]: Value stored to 'orientation' during its initialization is never read
-
Bastien Nocera authored
From Coverity: iio-sensor-proxy-3.3/src/iio-buffer-utils.c:435: dont_call: "fscanf" assumes an arbitrarily long string, so callers must use correct precision specifiers or never use "fscanf". This also fixes the temp variable being reused to parse the contents of the sysfs file before being freed. How this behaves depends on the length of the sysfs file path and the length of the string inside the file.
-
Bastien Nocera authored
Use g_autofree to avoid a goto on error.
-
Bastien Nocera authored
From Coverity: iio-sensor-proxy-3.3/src/iio-buffer-utils.c:289: leaked_storage: Variable "filename" going out of scope leaks the storage it points to.
-
Bastien Nocera authored
On error, the channel info would just be left unfreed. From Coverity: iio-sensor-proxy-3.3/src/iio-buffer-utils.c:330: leaked_storage: Variable "current" going out of scope leaks the storage it points to. iio-sensor-proxy-3.3/src/iio-buffer-utils.c:312: leaked_storage: Variable "current" going out of scope leaks the storage it points to. iio-sensor-proxy-3.3/src/iio-buffer-utils.c:304: leaked_storage: Variable "current" going out of scope leaks the storage it points to. iio-sensor-proxy-3.3/src/iio-buffer-utils.c:302: leaked_storage: Variable "current" going out of scope leaks the storage it points to. iio-sensor-proxy-3.3/src/iio-buffer-utils.c:293: leaked_storage: Variable "current" going out of scope leaks the storage it points to. iio-sensor-proxy-3.3/src/iio-buffer-utils.c:289: leaked_storage: Variable "current" going out of scope leaks the storage it points to. iio-sensor-proxy-3.3/src/iio-buffer-utils.c:350:2: warning[unix.Malloc]: Potential leak of memory pointed to by 'current'
-
Bastien Nocera authored
From Coverity: iio-sensor-proxy-3.3/src/iio-buffer-utils.c:769: noescape: Resource "buffer_data" is not freed or pointed-to in "buffer_drv_data_free". iio-sensor-proxy-3.3/src/iio-buffer-utils.c:770:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffer_data'
-
Bastien Nocera authored
From Coverity: iio-sensor-proxy-3.3/src/accel-mount-matrix.c:86: check_return: Calling "parse_mount_matrix" without checking return value (as is done elsewhere 10 out of 11 times).
-
Bastien Nocera authored
-
Bastien Nocera authored
From Coverity: iio-sensor-proxy-3.3/src/iio-sensor-proxy.c:964: check_return: Calling "g_setenv("G_MESSAGES_DEBUG", "all", 1)" without checking return value. This library function may fail and return an error code.
-
Bastien Nocera authored
From Coverity: iio-sensor-proxy-3.3/src/iio-buffer-utils.c:173: leaked_storage: Variable "filename" going out of scope leaks the storage it points to.
-
Bastien Nocera authored
From Coverity: iio-sensor-proxy-3.3/src/iio-buffer-utils.c:111: overwrite_var: Overwriting "filename" in "filename = g_build_filename(device_dir, "scan_elements", builtname, NULL)" leaks the storage that "filename" points to.
-
Bastien Nocera authored
Use g_auto() to simplify the memory management.
-
Bastien Nocera authored
WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300
-
- 15 Mar, 2022 1 commit
-
-
Bastien Nocera authored
In c7fb43e0, we added a buffer driver for ambient light sensors, but we added it to the list of drivers in a way that would favour polling drivers. Since we started using IIO_SENSOR_PROXY_TYPE to tag devices, and as those can support multiple drivers, we need to prefer the buffer driver as it's the one that doesn't require constant monitoring. This also fixes operations on some Dell laptops where the polling driver is completely broken. See !352
-
- 14 Mar, 2022 2 commits
-
-
Bastien Nocera authored
-
Bastien Nocera authored
-
- 21 Dec, 2021 1 commit
-
-
Guido Günther authored
Linux 5.6 added the near level property in 445b16fb6bdc2 which can be used in DT based devices to give a default.
-
- 29 Sep, 2021 3 commits
-
-
Bastien Nocera authored
Check whether a particular user/D-Bus client is allowed to claim a sensor. The ClaimCompass method on net.hadess.SensorProxy.Compass doesn't have a check as only the geoclue user is allowed to access this interface, as per the D-Bus configuration.
-
Bastien Nocera authored
And allow all us to perform all the actions.
-
Bastien Nocera authored
Describe and set defaults for claiming sensors.
-
- 07 Sep, 2021 2 commits
-
-
Bastien Nocera authored
unittest_inspector.py lists the tests in the integration-test.py script, which are then added as individual tests.
-
Bastien Nocera authored
Add the python suffix.
-
- 19 Aug, 2021 2 commits
-
-
Bastien Nocera authored
This will stop needing to ask users that read the README when reporting bugs but don't include this info.
-
Bastien Nocera authored
The package is already available in repositories.
-
- 16 Aug, 2021 3 commits
-
-
Bastien Nocera authored
-
Bastien Nocera authored
Test both parts of iioutils_get_param_float() for 0.0 readings.
-
Bastien Nocera authored
0.0 is a valid offset. https://bugzilla.redhat.com/show_bug.cgi?id=1978419#c11
-
- 14 Aug, 2021 5 commits
-
-
Bastien Nocera authored
-
Bastien Nocera authored
Polling accelerometer drivers read the accelerometer scales using libgudev. Check that libgudev is new enough and this bug is fixed: https://gitlab.gnome.org/GNOME/libgudev/-/merge_requests/17
-
Bastien Nocera authored
-
Bastien Nocera authored
-
Bastien Nocera authored
-