Prefer <sys/cdefs.h>'s __printflike() macro to the recently added

__GNUCLIKE_ATTRIBUTE_PRINTF.

Approved by:	mjacob
This commit is contained in:
Stefan Farfeleder 2005-03-07 15:29:11 +00:00
parent 85faa37735
commit e68c6390f4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143249

View File

@ -763,12 +763,8 @@ int isp_async(struct ispsoftc *, ispasync_t, void *);
/*
* Platform Dependent Error and Debug Printout
*/
#ifdef __GNUCLIKE_ATTRIBUTE_PRINTF
void isp_prt(struct ispsoftc *, int level, const char *, ...)
__attribute__((__format__(__printf__,3,4)));
#else
void isp_prt(struct ispsoftc *, int level, const char *, ...);
#endif
__printflike(3, 4);
#define ISP_LOGALL 0x0 /* log always */
#define ISP_LOGCONFIG 0x1 /* log configuration messages */