Magellan Linux

Contents of /trunk/systemd/patches/systemd-242-network-logs-link-state-change.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3368 - (show annotations) (download)
Tue Jul 9 11:20:22 2019 UTC (4 years, 9 months ago) by niro
File size: 869 byte(s)
-added systemd-242 upstream patches
1 From 0beb9542e90ab1c5d1507a1046a326fbcf73861c Mon Sep 17 00:00:00 2001
2 From: Yu Watanabe <watanabe.yu+github@gmail.com>
3 Date: Mon, 15 Apr 2019 20:56:01 +0900
4 Subject: [PATCH] network: logs link state change
5
6 ---
7 src/network/networkd-link.c | 4 ++++
8 1 file changed, 4 insertions(+)
9
10 diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
11 index 4846b13a8b8..49363299e5d 100644
12 --- a/src/network/networkd-link.c
13 +++ b/src/network/networkd-link.c
14 @@ -721,6 +721,10 @@ static void link_set_state(Link *link, LinkState state) {
15 if (link->state == state)
16 return;
17
18 + log_link_debug(link, "State changed: %s -> %s",
19 + link_state_to_string(link->state),
20 + link_state_to_string(state));
21 +
22 link->state = state;
23
24 link_send_changed(link, "AdministrativeState", NULL);