]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/netdev/netdev.h
networkd: improve how networkd logs things
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Apr 2015 15:40:18 +0000 (17:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Apr 2015 15:43:55 +0000 (17:43 +0200)
commit6a7a4e4d0a057febab787a2d5d3e0b52d2db2268
treef9cd7704d51916281290e59740934b9b40365387
parentfed2b07ebc9e8694b5b326923356028f464381ce
networkd: improve how networkd logs things

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.
src/network/networkd-address.c
src/network/networkd-fdb.c
src/network/networkd-link.c
src/network/networkd-netdev.c
src/network/networkd-netdev.h
src/network/networkd-network.c
src/network/networkd.h