networkd: improve how networkd logs things

System Internals / systemd - Lennart Poettering [poettering.net] - 21 April 2015 10:43 UTC

This makes adds a couple of fixes:

- Introduces log_netdev_error_errno() and friends, which takes an error number, and matches what log_link_error_errno() and friends do.

- Replaces a lof ot strerror() usage with log_netdev_error_errno(), log_link_error_errno() and log_erro_errno()

- Uppercases the first character of many log messages, after all this is supposed to be english language

- Drops manual negating of error codes before passing them to log functions, the log functions all do that internally anyway.

Some other minor fixes.

Behaviour should not change really.

6a7a4e4 networkd: improve how networkd logs things
src/network/networkd-address.c | 6 +-
src/network/networkd-fdb.c | 24 +--
src/network/networkd-link.c | 458 +++++++++++++++-------------------------
src/network/networkd-netdev.c | 190 +++++------------
src/network/networkd-netdev.h | 20 +-
src/network/networkd-network.c | 15 +-
src/network/networkd.h | 2 +-
7 files changed, 252 insertions(+), 463 deletions(-)

Upstream: github.com


  • Share