mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
udev: add missing newline when writing to /dev/kmsg
This commit is contained in:
parent
7212a8a99e
commit
02aee10881
@ -767,7 +767,7 @@ static int rename_netif(struct udev_event *event)
|
|||||||
util_strscpy(ifr.ifr_newname, IFNAMSIZ, event->name);
|
util_strscpy(ifr.ifr_newname, IFNAMSIZ, event->name);
|
||||||
err = ioctl(sk, SIOCSIFNAME, &ifr);
|
err = ioctl(sk, SIOCSIFNAME, &ifr);
|
||||||
if (err >= 0) {
|
if (err >= 0) {
|
||||||
print_kmsg("renamed network interface %s to %s", ifr.ifr_name, ifr.ifr_newname);
|
print_kmsg("renamed network interface %s to %s\n", ifr.ifr_name, ifr.ifr_newname);
|
||||||
} else {
|
} else {
|
||||||
err = -errno;
|
err = -errno;
|
||||||
log_error("error changing net interface name %s to %s: %m\n", ifr.ifr_name, ifr.ifr_newname);
|
log_error("error changing net interface name %s to %s: %m\n", ifr.ifr_name, ifr.ifr_newname);
|
||||||
|
Loading…
Reference in New Issue
Block a user