aboutsummaryrefslogtreecommitdiffstats
path: root/core/lwip/src/include/arch/cc.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-04-24 13:47:14 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-04-24 13:47:14 -0700
commit727ce291cc82b2634a188ebfc059eb4fee2583c8 (patch)
tree037badc39579e41dd21b13e1fa4b6dab24a3da5b /core/lwip/src/include/arch/cc.h
parent2c7e107a97759d6c7527a85ef8bb6d5bcb85a948 (diff)
downloadsyslinux-727ce291cc82b2634a188ebfc059eb4fee2583c8.tar.gz
syslinux-727ce291cc82b2634a188ebfc059eb4fee2583c8.tar.xz
syslinux-727ce291cc82b2634a188ebfc059eb4fee2583c8.zip
pxe: more verbose lwIP asserts
If we're going to bother compiling in the lwIP asserts, then make them a bit more useful in terms of the message delivered. This may be worth tweaking further to make a smaller footprint. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/lwip/src/include/arch/cc.h')
-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 add36589..5f5547f7 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("%s", (x)); kaboom(); } while(0)
+#define LWIP_PLATFORM_ASSERT(x) do { printf("LWIP(%s,%d): %s", __FILE__, __LINE__, (x)); kaboom(); } while(0)
#else
#define LWIP_PLATFORM_DIAG(x) ((void)0) /* For now... */
#define LWIP_PLATFORM_ASSERT(x) kaboom()