commit | 0ab847959fb6fab8435e0319cc2d6ed150127ef3 | [log] [tgz] |
---|---|---|
author | Konstantin Aladyshev <aladyshev22@gmail.com> | Mon May 05 17:02:43 2025 +0300 |
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | Fri Sep 05 16:31:14 2025 +0000 |
tree | 2cc9e46a44283a4e51e9ee15a65dfe6d19840d23 | |
parent | 62be74f18e597534a6aecab3b6229082b5ffac21 [diff] |
Handle Value::Unit::Percent unit correctly Currently if a sensor unit is 'Value::Unit::Percent' the following error message is generated: """ Unknown value unit type: = xyz.openbmc_project.Sensor.Value.Unit.Percent """ According to the IPMI specification if the sensor unit is percent the 'Percentage' bit should be set in the 'Sensor Units 1' field of the full sensor record. Use 'set_percentage' function to set this field. Also for consistency move the rest of the 'Sensor Units 1' field setting inside the 'setUnitFieldsForObject' function. Tested: - Before Each sensor with the 'Value::Unit::Percent' unit produces the 'Unknown value unit type' error message - After No more 'Unknown value unit type' error messages from the percent unit sensors. Change-Id: I23048f91be0ca7ce749732c766d9f195e929c7b7 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage