[syslinux:lwip] pxe: more verbose lwIP asserts

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Apr 24 21:03:22 PDT 2011


Commit-ID:  727ce291cc82b2634a188ebfc059eb4fee2583c8
Gitweb:     http://syslinux.zytor.com/commit/727ce291cc82b2634a188ebfc059eb4fee2583c8
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 24 Apr 2011 13:47:14 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 24 Apr 2011 13:47:14 -0700

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 at zytor.com>


---
 core/lwip/src/include/arch/cc.h |    2 +-
 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 add3658..5f5547f 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()



More information about the Syslinux-commits mailing list