summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-02-22 23:38:31 +0100
committerThomas Haller <thaller@redhat.com>2017-02-22 23:39:07 +0100
commite350ba7be6f97ab7722e7e242f18c009659d3f8e (patch)
treee48638cc25c60657a82605529662f700e068652c
parent58c25bc08f91bebc86ceebc1c7502bcf7e407b25 (diff)
downloadNetworkManager-e350ba7be6f97ab7722e7e242f18c009659d3f8e.tar.gz
fixup! team: support the ethernet.cloned-mac-address property
Give logging string a set-hw-addr prefix. I tend to grep for this token to find places related to... setting the hwaddr.
-rw-r--r--src/devices/team/nm-device-team.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/team/nm-device-team.c b/src/devices/team/nm-device-team.c
index c3c2eb14ce..20ce520a99 100644
--- a/src/devices/team/nm-device-team.c
+++ b/src/devices/team/nm-device-team.c
@@ -575,14 +575,14 @@ teamd_start (NMDevice *device, NMConnection *connection)
if (hwaddr) {
if ( !json_is_string (hwaddr)
|| !nm_streq0 (json_string_value (hwaddr), cloned_mac))
- _LOGW (LOGD_TEAM, "can't set team cloned-mac-address as the JSON configuration already contains \"hwaddr\"");
+ _LOGW (LOGD_TEAM, "set-hw-addr: can't set team cloned-mac-address as the JSON configuration already contains \"hwaddr\"");
} else {
hwaddr = json_string (cloned_mac);
json_object_set (json, "hwaddr", hwaddr);
config = config_free = json_dumps (json, JSON_INDENT(0) |
JSON_ENSURE_ASCII |
JSON_SORT_KEYS);
- _LOGD (LOGD_TEAM, "injected \"hwaddr\" : \"%s\" into team configuration", cloned_mac);
+ _LOGD (LOGD_TEAM, "set-hw-addr: injected \"hwaddr\" \"%s\" into team configuration", cloned_mac);
json_decref (hwaddr);
}
json_decref (json);