From 19d26357f64a1fa25f31ae8009f0be6ddb9e7ab2 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Sat, 3 Jan 2015 21:43:09 +0100 Subject: [PATCH] TRACE_Debug macro contains func name and line --- .../atmel_softpack_libraries/libchip_sam3s/include/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam3s_example/atmel_softpack_libraries/libchip_sam3s/include/trace.h b/sam3s_example/atmel_softpack_libraries/libchip_sam3s/include/trace.h index 5da90a24..8149eda7 100644 --- a/sam3s_example/atmel_softpack_libraries/libchip_sam3s/include/trace.h +++ b/sam3s_example/atmel_softpack_libraries/libchip_sam3s/include/trace.h @@ -176,7 +176,7 @@ extern void TRACE_CONFIGURE( uint32_t dwBaudRate, uint32_t dwMCk ) ; /* Trace compilation depends on TRACE_LEVEL value */ #if (TRACE_LEVEL >= TRACE_LEVEL_DEBUG) -#define TRACE_DEBUG(...) { printf("-D- " __VA_ARGS__); } +#define TRACE_DEBUG(...) { printf("-D- " __VA_ARGS__); printf("(%s func. %s)\n\r", __FILE__, __FUNCTION__); } #define TRACE_DEBUG_WP(...) { printf(__VA_ARGS__); } #else #define TRACE_DEBUG(...) { }