udev-rules: add missing device name prefix in log message
Otherwise, it is hard to find the dump in journal. With this change,
we can find the entry by e.g.
journalctl -b -u systemd-udevd.service DEVICE=eth0
Follow-up for b4ffb77669.
This commit is contained in:
committed by
Luca Boccassi
parent
6c40197464
commit
d858b1b10a
@@ -2607,7 +2607,7 @@ static int udev_rule_apply_token_to_event(
|
||||
if (r < 0)
|
||||
log_event_warning_errno(event, token, r, "Failed to finalize memory stream, ignoring: %m");
|
||||
else
|
||||
log_info("%s", buf);
|
||||
log_device_info(dev, "%s", buf);
|
||||
|
||||
log_event_info(event, token, "DONE");
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user