Make a string copy explicit

The newest version of gcc seems to flag on patterns like what was
included there, where we implicitly construct a string, then take a
reference to it.  So far as I'm aware, this has never caused an issue in
practice, but seems to be undefined behavior.

In a perfect world, I would change the left side of this to match the
input type of const char*, but that would require some interface changes
that I'd like to avoid to keep this change small and self contained
while we try to fix the build.

Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ic1ff16c02f6461894834432ccad285526ae41b3f
1 file changed
tree: 0152b79e116e3b510df1d817c64766e5737f9bf2
  1. include/
  2. service_files/
  3. src/
  4. tests/
  5. .clang-format
  6. .clang-ignore
  7. .clang-tidy
  8. .gitignore
  9. Jenkinsfile
  10. LICENSE
  11. MAINTAINERS
  12. meson.build
  13. meson_options.txt
  14. README.md
README.md

dbus-sensors

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.

key features

  • 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

sensor documentation