Changeset 1171


Ignore:
Timestamp:
Feb 4, 2004, 11:36:26 PM (22 years ago)
Author:
bird
Message:

MSG2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/emx/libclog.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1170 r1171  
    3131 * @param   ...             Arguments to the format string.
    3232 */
    33 extern unsigned __libc_LogEnter(const char *pszFunction, const char *pszFormat, ...);
     33extern unsigned __libc_LogEnter(const char *pszFunction, const char *pszFormat, ...) __printflike(2, 3);
    3434/**
    3535 * Output a leave function log message.
     
    4242 * @param   ...             Arguments to the format string.
    4343 */
    44 extern void     __libc_LogLeave(unsigned uEnterTS, const char *pszFunction, const char *pszFormat, ...);
     44extern void     __libc_LogLeave(unsigned uEnterTS, const char *pszFunction, const char *pszFormat, ...) __printflike(3, 4);
    4545
    4646/**
     
    5454 * @param   ...             Arguments to the format string.
    5555 */
    56 extern void     __libc_LogMsg(unsigned uEnterTS, const char *pszFunction, const char *pszFormat, ...);
     56extern void     __libc_LogMsg(unsigned uEnterTS, const char *pszFunction, const char *pszFormat, ...) __printflike(3, 4);
    5757
    5858/** Macro to log a function entry. */
     
    6363#define LIBCLOG_MSG(...) \
    6464    __libc_LogLeave(__libclog_uEnterTS__, __PRETTY_FUNCTION__, __VA_ARGS__)
     65#define LIBCLOG_MSG2(...) \
     66    __libc_LogLeave(~0, __PRETTY_FUNCTION__, __VA_ARGS__)
    6567
    6668#else
     
    7173#define LIBCLOG_LEAVE(...)  do {} while (0)
    7274#define LIBCLOG_MSG(...)    do {} while (0)
     75#define LIBCLOG_MSG2(...)    do {} while (0)
    7376
    7477#endif
Note: See TracChangeset for help on using the changeset viewer.