summaryrefslogtreecommitdiff
path: root/udev/udevadm-trigger.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/udevadm-trigger.c')
-rw-r--r--udev/udevadm-trigger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/udevadm-trigger.c b/udev/udevadm-trigger.c
index e7940ef92d..a0f10dac68 100644
--- a/udev/udevadm-trigger.c
+++ b/udev/udevadm-trigger.c
@@ -105,12 +105,12 @@ static void trigger_uevent(struct udev *udev, const char *syspath, const char *a
fd = open(filename, O_WRONLY);
if (fd < 0) {
- dbg(udev, "error on opening %s: %s\n", filename, strerror(errno));
+ dbg(udev, "error on opening %s: %m\n", filename);
return;
}
if (write(fd, action, strlen(action)) < 0)
- info(udev, "error writing '%s' to '%s': %s\n", action, filename, strerror(errno));
+ info(udev, "error writing '%s' to '%s': %m\n", action, filename);
close(fd);
}