aboutsummaryrefslogtreecommitdiffstats
path: root/core/lwip/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/lwip/src')
-rw-r--r--core/lwip/src/include/arch/cc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lwip/src/include/arch/cc.h b/core/lwip/src/include/arch/cc.h
index 5f5547f7..677ef4f5 100644
--- a/core/lwip/src/include/arch/cc.h
+++ b/core/lwip/src/include/arch/cc.h
@@ -23,7 +23,7 @@ typedef uintptr_t mem_ptr_t;
#if 1
#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0)
-#define LWIP_PLATFORM_ASSERT(x) do { printf("LWIP(%s,%d): %s", __FILE__, __LINE__, (x)); kaboom(); } while(0)
+#define LWIP_PLATFORM_ASSERT(x) do { printf("LWIP(%s,%d,%p): %s", __FILE__, __LINE__, __builtin_return_address(0), (x)); kaboom(); } while(0)
#else
#define LWIP_PLATFORM_DIAG(x) ((void)0) /* For now... */
#define LWIP_PLATFORM_ASSERT(x) kaboom()