Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2018 10:16:55 +0200
From:      Ed Schouten <ed@nuxi.nl>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Dimitry Andric <dim@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>,  Thomas Munro <munro@ip9.org>
Subject:   Re: printf("%m") doesn't generate a warning -- shouldn't it?
Message-ID:  <CABh_MKkWOaKZxqye2zW7tGF2Pro6hvnf5PHTgY8HqtHrFCprqg@mail.gmail.com>
In-Reply-To: <20180521134306.GT6887@kib.kiev.ua>
References:  <CADLWmXU__ZRaS=gg_Y18WYbJJgk2Rs065RhkYmAZCFY8mp1Wjg@mail.gmail.com> <BAD690AA-C51A-4125-8F23-B637758C8EB6@FreeBSD.org> <20180521134306.GT6887@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
2018-05-21 15:43 GMT+02:00 Konstantin Belousov <kostikbel@gmail.com>:
> Why not add %m instead ?  It is very easy and several people did it in
> round-about ways.

Added advantage of that approach is that it allows the syslog()
function to be simplified significantly. No need to expand the %m
there, which ends up being quite messy.

-- 
Ed Schouten <ed@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKkWOaKZxqye2zW7tGF2Pro6hvnf5PHTgY8HqtHrFCprqg>