]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit - src/dhcpcd.conf.5.in
logerr: errx with logging
authorRoy Marples <roy@marples.name>
Sun, 9 Apr 2017 07:44:16 +0000 (08:44 +0100)
committerRoy Marples <roy@marples.name>
Sun, 9 Apr 2017 07:44:16 +0000 (08:44 +0100)
commit94d1ded9bd6340511f8930862971af1556a42dc4
treefd80dab09183fc0bced47d7ab26b7fcd6ef13824
parentebdb87300ee314eab935fc9f29aeca91a7bbcbd2
logerr: errx with logging

Had a few complaints that the lastlog option was dropped.
It's now been restored, but with a new way of logging which is
the same as errx(3) as found on the BSD platforms but the output
also goes to the logging option of choice.

This allows the function to define the log priority for syslog
and there is no more need to specify %m.
In turn, this makes the code needed to write error messages
a lot shorter than before.

loginfo and logdebug have no optional x suffix because they are not
meant to record errors, unlike logerr and logwarn.
27 files changed:
src/Makefile
src/arp.c
src/bpf.c
src/common.c
src/control.c
src/dev.c
src/dhcp-common.c
src/dhcp.c
src/dhcp6.c
src/dhcpcd.8.in
src/dhcpcd.c
src/dhcpcd.conf.5.in
src/dhcpcd.h
src/duid.c
src/if-bsd.c
src/if-linux.c
src/if-options.c
src/if-options.h
src/if.c
src/ipv4.c
src/ipv4ll.c
src/ipv6.c
src/ipv6nd.c
src/logerr.c [new file with mode: 0644]
src/logerr.h [new file with mode: 0644]
src/route.c
src/script.c