]> git.ipfire.org Git - thirdparty/collectd.git/commit
smart: check udev_enumerate_scan_devices() return value and unify log messages (...
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Mar 2022 07:34:33 +0000 (08:34 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Mar 2022 07:34:33 +0000 (08:34 +0100)
commit54f769929d7aafc8dd5162616af19a8e60cd5ae2
tree66dd770649d99609cfe48d68d8fe8273b29b6132
parentac581dac2478d590bdc176f6e767c837f1e9fb02
smart: check udev_enumerate_scan_devices() return value and unify log messages (#3984)

* Check udev_enumerate_scan_devices return value

This change checks the return value of the function and cancels the call
if the returned integer is not greater than or equal to 0.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* Unify and fix log messages

The error log messages were not consistent and had no prefix. This
commit adds the uniform prefix 'smart plugin:' to each log message. While
we're at it, I also removed the punctuation mark at the end of the
sentences.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
src/smart.c