From f9cf058613f5d30a3012feaa588312454f1024e6 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 27 Jun 2011 19:06:43 -0700 Subject: com32: make syslinux_dump_*() pure debugging functions Make the syslinux_dump_*() functions pure debugging functions; that is the way that they are used anyway, and this way they log to the same place as dprintf. Signed-off-by: H. Peter Anvin --- com32/include/syslinux/movebits.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'com32/include/syslinux/movebits.h') diff --git a/com32/include/syslinux/movebits.h b/com32/include/syslinux/movebits.h index 54ee7ff9..8bcdf3ed 100644 --- a/com32/include/syslinux/movebits.h +++ b/com32/include/syslinux/movebits.h @@ -83,7 +83,12 @@ int syslinux_memmap_find(struct syslinux_memmap *list, addr_t * start, addr_t * len, addr_t align); /* Debugging functions */ -void syslinux_dump_movelist(FILE * file, struct syslinux_movelist *ml); -void syslinux_dump_memmap(FILE * file, struct syslinux_memmap *memmap); +#ifdef DEBUG +void syslinux_dump_movelist(struct syslinux_movelist *ml); +void syslinux_dump_memmap(struct syslinux_memmap *memmap); +#else +#define syslinux_dump_movelist(x) ((void)0) +#define syslinux_dump_memmap(x) ((void)0) +#endif #endif /* _SYSLINUX_MOVEBITS_H */ -- cgit v1.2.1