From 32cfed93b305a736053a3e4811540a35a05c7196 Mon Sep 17 00:00:00 2001 From: Simon Rasmussen Date: Wed, 15 Feb 2017 23:05:52 +0100 Subject: [PATCH] Better non ros output logging --- include/ur_modern_driver/log.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/ur_modern_driver/log.h b/include/ur_modern_driver/log.h index 3837402..db0f5b6 100644 --- a/include/ur_modern_driver/log.h +++ b/include/ur_modern_driver/log.h @@ -12,10 +12,10 @@ #else - #define LOG_DEBUG(format, ...) printf("DEBUG: " format "\n", ##__VA_ARGS__) - #define LOG_WARN(format, ...) printf("WARNING: " format "\n", ##__VA_ARGS__) - #define LOG_INFO(format, ...) printf("INFO: " format "\n", ##__VA_ARGS__) - #define LOG_ERROR(format, ...) printf("ERROR: " format "\n", ##__VA_ARGS__) - #define LOG_FATAL(format, ...) printf("FATAL: " format "\n", ##__VA_ARGS__) + #define LOG_DEBUG(format, ...) printf("[DEBUG]: " format "\n", ##__VA_ARGS__) + #define LOG_WARN(format, ...) printf("[WARNING]: " format "\n", ##__VA_ARGS__) + #define LOG_INFO(format, ...) printf("[INFO]: " format "\n", ##__VA_ARGS__) + #define LOG_ERROR(format, ...) printf("[ERROR]: " format "\n", ##__VA_ARGS__) + #define LOG_FATAL(format, ...) printf("[FATAL]: " format "\n", ##__VA_ARGS__) #endif \ No newline at end of file