summaryrefslogtreecommitdiff
path: root/com32/include/syslinux/movebits.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-06-27 19:06:43 -0700
committerH. Peter Anvin <hpa@zytor.com>2012-05-18 16:04:00 -0700
commit06531db8ec5d58477d7083d3d8130e909206233f (patch)
tree864b5572c8cab87184fe9a93e6f17b35ff3b5c35 /com32/include/syslinux/movebits.h
parentbe697f88819ef20d72d1e7ea7d3d975d1fed5fb0 (diff)
downloadsyslinux-06531db8ec5d58477d7083d3d8130e909206233f.tar.gz
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 <hpa@zytor.com>
Diffstat (limited to 'com32/include/syslinux/movebits.h')
-rw-r--r--com32/include/syslinux/movebits.h9
1 files changed, 7 insertions, 2 deletions
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 */