Changeset 1027:0117a7746b21 in freeDiameter for include
- Timestamp:
- Apr 15, 2013, 4:17:07 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfdproto.h
r1026 r1027 84 84 #endif /* DEBUG */ 85 85 86 #ifdef SWIG 87 #define _ATTRIBUTE_PRINTFLIKE_(_f,_v) 88 #else 89 #define _ATTRIBUTE_PRINTFLIKE_(_f,_v) __attribute__ ((format (printf, _f, _v))) 90 #endif /* SWIG */ 86 91 87 92 /*============================================================*/ … … 128 133 * None. 129 134 */ 130 void fd_log ( int, const char *, ... ) _ _attribute__ ((format (printf, 2, 3)));135 void fd_log ( int, const char *, ... ) _ATTRIBUTE_PRINTFLIKE_(2,3); 131 136 #define fd_log_debug(format,args...) fd_log(FD_LOG_DEBUG, format, ## args) 132 137 #define fd_log_notice(format,args...) fd_log(FD_LOG_NOTICE, format, ## args) … … 784 789 785 790 if (th_ret == PTHREAD_CANCELED) { 786 TRACE_DEBUG(ANNOYING, "The thread %p was canceled", *th);791 TRACE_DEBUG(ANNOYING, "The thread %p was canceled", (void *)*th); 787 792 } else { 788 TRACE_DEBUG(CALL, "The thread %p returned %p", *th, th_ret);793 TRACE_DEBUG(CALL, "The thread %p returned %p", (void *)*th, th_ret); 789 794 } 790 795 … … 2337 2342 }; 2338 2343 #define FD_MSG_LOG_MAX FD_MSG_LOG_TIMING 2339 void fd_msg_log( enum fd_msg_log_cause cause, struct msg * msg, const char * prefix_format, ... ) _ _attribute__ ((format (printf, 3, 4)));2344 void fd_msg_log( enum fd_msg_log_cause cause, struct msg * msg, const char * prefix_format, ... ) _ATTRIBUTE_PRINTFLIKE_(3,4); 2340 2345 2341 2346 /* configure the msg_log facility */
Note: See TracChangeset
for help on using the changeset viewer.