Navigation


Changeset 1025:afaeef21596b in freeDiameter for include


Ignore:
Timestamp:
Apr 13, 2013, 11:26:09 PM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Mark fd_log and fd_msg_log as printf-like functions, and fix a warning
found by that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1019 r1025  
    128128 *  None.
    129129 */
    130 void fd_log ( int, const char *, ... );
     130void fd_log ( int, const char *, ... ) __printflike(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)
     
    786786                TRACE_DEBUG(ANNOYING, "The thread %p was canceled", *th);
    787787        } else {
    788                 TRACE_DEBUG(CALL, "The thread %p returned %x", *th, th_ret);
     788                TRACE_DEBUG(CALL, "The thread %p returned %p", *th, th_ret);
    789789        }
    790790       
     
    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, ... );
     2339void fd_msg_log( enum fd_msg_log_cause cause, struct msg * msg, const char * prefix_format, ... ) __printflike(3, 4);
    23402340
    23412341/* configure the msg_log facility */
Note: See TracChangeset for help on using the changeset viewer.