sw:vec_iree: Add log tag to non-springbok log functions Make the verbosity more obvious in user-space emulation. Change-Id: I50c6f11c2a95880f48ed0f81717882c96a3f013c
diff --git a/native_log_include/springbok.h b/native_log_include/springbok.h index d56c2f4..b6ac85c 100644 --- a/native_log_include/springbok.h +++ b/native_log_include/springbok.h
@@ -4,10 +4,10 @@ #include <stdio.h> -#define LOG_NOISY(msg,args...) fprintf(stdout, msg"\n", ##args) -#define LOG_DEBUG(msg,args...) fprintf(stdout, msg"\n", ##args) -#define LOG_INFO(msg,args...) fprintf(stdout, msg"\n", ##args) -#define LOG_WARN(msg,args...) fprintf(stdout, msg"\n", ##args) -#define LOG_ERROR(msg, args...) fprintf(stderr, msg"\n", ##args) +#define LOG_NOISY(msg, args...) fprintf(stdout, "[NOISY] " msg "\n", ##args) +#define LOG_DEBUG(msg, args...) fprintf(stdout, "[DEBUG] " msg "\n", ##args) +#define LOG_INFO(msg, args...) fprintf(stdout, "[INFO] " msg "\n", ##args) +#define LOG_WARN(msg, args...) fprintf(stdout, "[WARN] " msg "\n", ##args) +#define LOG_ERROR(msg, args...) fprintf(stderr, "[ERROR] " msg "\n", ##args) #endif // SPRINGBOK_H