40 lines
1.6 KiB
Diff
40 lines
1.6 KiB
Diff
|
Based on 1187f20655de0c37337ea73e1e55823b83cd7c00 Mon Sep 17 00:00:00 2001
|
||
|
From: Tom Gundersen <teg@jklm.no>
|
||
|
Date: Tue, 9 Sep 2014 22:45:03 +0200
|
||
|
Subject: [PATCH] udev: netif_rename - don't log to kmsg
|
||
|
|
||
|
As of 3.17, the kernel will do this on its own, so just do regular log_debug() logging from udev.
|
||
|
---
|
||
|
src/udev/udev-event.c | 8 ++++----
|
||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||
|
|
||
|
--- src/udev/udev-event.c
|
||
|
+++ src/udev/udev-event.c 2014-09-16 08:52:36.154735794 +0000
|
||
|
@@ -770,7 +770,7 @@ static int rename_netif(struct udev_even
|
||
|
|
||
|
r = rtnl_set_link_name(rtnl, udev_device_get_ifindex(dev), name);
|
||
|
if (r == 0) {
|
||
|
- print_kmsg("renamed network interface %s to %s\n", oldname, name);
|
||
|
+ log_debug("renamed network interface %s to %s", oldname, name);
|
||
|
return r;
|
||
|
} else if (r != -EEXIST) {
|
||
|
log_error("error changing net interface name %s to %s: %s",
|
||
|
@@ -789,7 +789,7 @@ static int rename_netif(struct udev_even
|
||
|
}
|
||
|
|
||
|
/* log temporary name */
|
||
|
- print_kmsg("renamed network interface %s to %s\n", oldname, interim);
|
||
|
+ log_debug("renamed network interface %s to %s", oldname, interim);
|
||
|
|
||
|
loop = 90 * 20;
|
||
|
while (loop--) {
|
||
|
@@ -798,7 +798,7 @@ static int rename_netif(struct udev_even
|
||
|
|
||
|
r = rtnl_set_link_name(rtnl, udev_device_get_ifindex(dev), name);
|
||
|
if (r == 0) {
|
||
|
- print_kmsg("renamed network interface %s to %s\n", interim, name);
|
||
|
+ log_debug("renamed network interface %s to %s", interim, name);
|
||
|
break;
|
||
|
}
|
||
|
|