Skip to content
Extraits de code Groupes Projets
Vérifiée Valider c0ba2a69 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Correction in log macros

parent 0e16582c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!67Resolve "Thread pool"
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
#define LOG(format, level, section, ...) \ #define LOG(format, level, section, ...) \
fprintf(stderr, " %c %s%s: " format "\n", \ fprintf(stderr, " %c %s%s: " format "\n", \
level == ERROR ? '!' : level == WARN ? '*' : level == INFO ? '.' : ' ', \ level == ERROR ? '!' : level == WARN ? '*' : level == INFO ? '.' : ' ', \
__func__, \
sizeof(section) > sizeof("") ? ("[" section "] ") : "", \ sizeof(section) > sizeof("") ? ("[" section "] ") : "", \
__func__, \
__VA_ARGS__) __VA_ARGS__)
#define LOG_INFO_SCT(section, format, ...) LOG(format, INFO, section, __VA_ARGS__) #define LOG_INFO_SCT(section, format, ...) LOG(format, INFO, section, __VA_ARGS__)
#define LOG_WARN_SCT(section, format, ...) LOG(format, WARN, section, __VA_ARGS__) #define LOG_WARN_SCT(section, format, ...) LOG(format, WARN, section, __VA_ARGS__)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter