1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

networkd: change message about missing Kind

If Kind is not specied, the message about "Invalid Kind" was misleading.
If Kind was specified in an invalid way, we get a message in the parsing
phase anyway. Reword the message to cover both cases better.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-09-10 17:44:50 +01:00
parent bac150e9d1
commit 881e6b5edf

View File

@ -622,7 +622,7 @@ static int netdev_load_one(Manager *manager, const char *filename) {
return 0; return 0;
if (netdev_raw->kind == _NETDEV_KIND_INVALID) { if (netdev_raw->kind == _NETDEV_KIND_INVALID) {
log_warning("NetDev with invalid Kind configured in %s. Ignoring", filename); log_warning("NetDev has no Kind configured in %s. Ignoring", filename);
return 0; return 0;
} }