Changeset 113:1b3ac8fd3a2a in rrlib_logging


Ignore:
Timestamp:
17.12.2013 19:30:16 (7 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Marked PrintFormatted with the format attribute to make the compler check for consistency in printf-style format string and arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • messages/implementation.h

    r110 r113  
    157157 
    158158template <typename TLogDescription> 
     159void PrintFormatted(const tConfiguration &domain_configuration, const TLogDescription &log_description, const char *function, const char *filename, unsigned int line, tLogLevel level, const char *fmt, ...) __attribute__((format(printf, 7, 8))); 
     160 
     161template <typename TLogDescription> 
    159162void PrintFormatted(const tConfiguration &domain_configuration, const TLogDescription &log_description, const char *function, const char *filename, unsigned int line, tLogLevel level, const char *fmt, ...) 
    160163{ 
Note: See TracChangeset for help on using the changeset viewer.