summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-monitor.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-13 11:26:55 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-19 14:24:03 -0400
commit25f027c5efb2a26b2c7cb9a9608eb2bd49cc5ffc (patch)
treea06ce3e12ccf6ada4027bd2f2994ad5727b3658f /src/libudev/libudev-monitor.c
parent35bca925f9bf78df3f64e321ab4830936fcef662 (diff)
downloadsystemd-25f027c5efb2a26b2c7cb9a9608eb2bd49cc5ffc.tar.gz
tree-wide: when %m is used in log_*, always specify errno explicitly
All those uses were correct, but I think it's better to be explicit. Using implicit errno is too error prone, and with this change we can require (in the sense of a style guideline) that the code is always specified. Helpful query: git grep -n -P 'log_[^s][a-z]+\(.*%m'
Diffstat (limited to 'src/libudev/libudev-monitor.c')
-rw-r--r--src/libudev/libudev-monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c
index a40329d732..8287694c49 100644
--- a/src/libudev/libudev-monitor.c
+++ b/src/libudev/libudev-monitor.c
@@ -681,7 +681,7 @@ retry:
udev_device = udev_device_new_from_nulstr(udev_monitor->udev, &buf.raw[bufpos], buflen - bufpos);
if (!udev_device) {
- log_debug("could not create device: %m");
+ log_debug_errno(errno, "could not create device: %m");
return NULL;
}