#define SGEN_LOG(level, format, ...) do { \
if (G_UNLIKELY ((level) <= SGEN_MAX_DEBUG_LEVEL && (level) <= gc_debug_level)) { \
- mono_gc_printf (gc_debug_file, format, ##__VA_ARGS__); \
+ mono_gc_printf (gc_debug_file, format "\n", ##__VA_ARGS__); \
} } while (0)
#define SGEN_COND_LOG(level, cond, format, ...) do { \
if (G_UNLIKELY ((level) <= SGEN_MAX_DEBUG_LEVEL && (level) <= gc_debug_level)) { \
if (cond) \
- mono_gc_printf (gc_debug_file, format, ##__VA_ARGS__); \
+ mono_gc_printf (gc_debug_file, format "\n", ##__VA_ARGS__); \
} } while (0)
extern int gc_debug_level;
#if defined (PLATFORM_ANDROID) || (defined (TARGET_IOS) && defined (TARGET_IOS))
-#define mono_gc_printf(gc_log_file, format, ...) g_log ("mono-gc", G_LOG_LEVEL_MESSAGE, format "\n", ##__VA_ARGS__)
+#define mono_gc_printf(gc_log_file, format, ...) g_log ("mono-gc", G_LOG_LEVEL_MESSAGE, format, ##__VA_ARGS__)
#define mono_runtime_printf(format, ...) g_log ("mono-rt", G_LOG_LEVEL_MESSAGE, format "\n", ##__VA_ARGS__)
#define mono_runtime_printf_err(format, ...) g_log ("mono-rt", G_LOG_LEVEL_CRITICAL, format "\n", ##__VA_ARGS__)
#define mono_runtime_stdout_fflush() do { } while (0)
#else
#define mono_gc_printf(gc_log_file, format, ...) do { \
- fprintf (gc_log_file, format "\n", ##__VA_ARGS__); \
+ fprintf (gc_log_file, format, ##__VA_ARGS__); \
fflush (gc_log_file); \
} while (0)