Date: Sun, 12 Jul 1998 23:45:28 -0700 (PDT) From: Bruce Evans <bde@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, cvs-include@FreeBSD.ORG Subject: cvs commit: src/sys/sys cdefs.h devfsext.h syslog.h systm.h tprintf.h src/include stdio.h src/sys/ddb ddb.h Message-ID: <199807130645.XAA29324@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 1998/07/12 23:45:26 PDT Modified files: sys/sys cdefs.h devfsext.h syslog.h systm.h tprintf.h include stdio.h sys/ddb ddb.h Log: Added macros __printflike() and __scanflike() to <sys/cdefs.h>. Use them to `make gcc -Wformat' check formats for all printf-like and scanf-like functions in /usr/src except for the err()/warn() family. err() isn't quite printf-like since its format arg can legitimately be NULL. syslog() isn't quite printf-like, but gcc already accepts %m, even for plain printf() when it shouldn't. Revision Changes Path 1.19 +11 -1 src/sys/sys/cdefs.h 1.21 +4 -3 src/sys/sys/devfsext.h 1.16 +3 -3 src/sys/sys/syslog.h 1.73 +10 -10 src/sys/sys/systm.h 1.7 +2 -2 src/sys/sys/tprintf.h 1.20 +10 -7 src/include/stdio.h 1.20 +3 -4 src/sys/ddb/ddb.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807130645.XAA29324>