aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-04-26 15:51:52 -0700
committerH. Peter Anvin <hpa@zytor.com>2012-04-26 15:51:52 -0700
commit335cd2ec7488a994323e569d55d14f658840b30b (patch)
tree10a9ecf8946497143212088d30fffacc36f33518
parenta70b4e8f705752388f1b13edaca19a0ee5843515 (diff)
downloadsyslinux-4.10-pre20.tar.gz
syslinux-4.10-pre20.tar.xz
syslinux-4.10-pre20.zip
lwip: Add return address to LWIP_PLATFORM_ASSERT()syslinux-4.10-pre20
It might help a little bit finding bugs... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-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()