Navigation


Changeset 1027:0117a7746b21 in freeDiameter for include


Ignore:
Timestamp:
Apr 15, 2013, 4:17:07 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a number of errors and warnings introduced/highlighted by recent commits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1026 r1027  
    8484#endif /* DEBUG */
    8585
     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 */
    8691
    8792/*============================================================*/
     
    128133 *  None.
    129134 */
    130 void fd_log ( int, const char *, ... ) __attribute__ ((format (printf, 2, 3)));
     135void fd_log ( int, const char *, ... ) _ATTRIBUTE_PRINTFLIKE_(2,3);
    131136#define fd_log_debug(format,args...)  fd_log(FD_LOG_DEBUG, format, ## args)
    132137#define fd_log_notice(format,args...) fd_log(FD_LOG_NOTICE, format, ## args)
     
    784789       
    785790        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);
    787792        } 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);
    789794        }
    790795       
     
    23372342};
    23382343#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)));
     2344void fd_msg_log( enum fd_msg_log_cause cause, struct msg * msg, const char * prefix_format, ... ) _ATTRIBUTE_PRINTFLIKE_(3,4);
    23402345
    23412346/* configure the msg_log facility */
Note: See TracChangeset for help on using the changeset viewer.