tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

"%m" formatting code and "syslog like"




Hello

I am one of the developers on NTPsec and we are getting warnings on NetBSD 8.0 in the form:

../../ntpd/ntp_io.c:1962:14: warning: %m is only allowed in syslog(3) like functions [-Wformat=]

This feature appears to have been added here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67956

From googling I have been able to find the flag that is set for this warning to be suppressed, but we have not been able to find any documentation on how to properly identify a function as "syslog like"

(Apologies if this is the wrong mailing list, it looked closest to what I was looking for)

--
/"In the end; what separates a Man, from a Slave? Money? Power? No. A Man Chooses, a Slave Obeys."/ -- Andrew Ryan

/"Utopia cannot precede the Utopian. It will exist the moment we are fit to occupy it."/ -- Sophia Lamb

I work for the Internet Civil Engineering Institute <https://icei.org/>, help us save the Internet from Entropy!



Home | Main Index | Thread Index | Old Index