commit | c12ceac2a0c754f29d0558c3fed0a64b8c74f6bf | [log] [tgz] |
---|---|---|
author | Andrew Jeffery <andrew@aj.id.au> | Tue May 25 13:34:06 2021 +0930 |
committer | Andrew Jeffery <andrew@aj.id.au> | Thu Jun 03 10:48:27 2021 +0930 |
tree | cfae88b2e2a308e9526135dc81f1d17dbec37eca | |
parent | 9f31558231f71b3e8544ae970e291d01116df7cf [diff] |
NVMeSensorMain: Fix clang-tidy performance-faster-string-find issue clang-tidy-11 -p=build-clang /home/andrew/src/openbmc/test/dbus-sensors/src/NVMeSensorMain.cpp ../src/NVMeSensorMain.cpp:113:49: error: 'find' called with a string literal consisting of a single character; consider using the more effective overload accepting a character [performance-faster-string-find,-warnings- as-errors] size_t dash = rootName.find("-"); ^~~ '-' Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I828652e125d79bad4cfff834b8cdeb3b114e327a
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access