mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 01:38:57 +00:00
Prefer <sys/cdefs.h>'s __printflike() macro to the recently added
__GNUCLIKE_ATTRIBUTE_PRINTF. Approved by: mjacob
This commit is contained in:
parent
85faa37735
commit
e68c6390f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143249
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user