Navigation


Changeset 1026:beb375690453 in freeDiameter


Ignore:
Timestamp:
Apr 14, 2013, 5:18:05 AM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

More portable version of printflike.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1025 r1026  
    128128 *  None.
    129129 */
    130 void fd_log ( int, const char *, ... ) __printflike(2, 3);
     130void fd_log ( int, const char *, ... ) __attribute__ ((format (printf, 2, 3)));
    131131#define fd_log_debug(format,args...)  fd_log(FD_LOG_DEBUG, format, ## args)
    132132#define fd_log_notice(format,args...) fd_log(FD_LOG_NOTICE, format, ## args)
     
    23372337};
    23382338#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, ... ) __printflike(3, 4);
     2339void fd_msg_log( enum fd_msg_log_cause cause, struct msg * msg, const char * prefix_format, ... ) __attribute__ ((format (printf, 3, 4)));
    23402340
    23412341/* configure the msg_log facility */
Note: See TracChangeset for help on using the changeset viewer.