Re: apmd: fix error message

2019-07-25 Thread Klemens Nanni
On Wed, Jul 24, 2019 at 11:21:00PM +0200, Alexander Bluhm wrote: > There is one more %m: > > logmsg(LOG_ERR, "cannot fetch power status: %m"); Thanks, fixed to logmsg(LOG_ERR, "cannot fetch power status: %s", strerror(errno)); This leaves one occurence of "%m"

Re: apmd: fix error message

2019-07-24 Thread Alexander Bluhm
On Wed, Jul 24, 2019 at 09:25:57PM +0200, Klemens Nanni wrote: > This snuck through > > revision 1.84 > date: 2018/12/04 18:00:57; author: tedu; state: Exp; lines: +44 -30; > redo the debug logging to be more like everything else. > ok kn > > Where the direct syslog(3) ca

apmd: fix error message

2019-07-24 Thread Klemens Nanni
This snuck through revision 1.84 date: 2018/12/04 18:00:57; author: tedu; state: Exp; lines: +44 -30; redo the debug logging to be more like everything else. ok kn Where the direct syslog(3) call was replaced with a logmsg() wrapper which uses printf(2) in case