[syslinux:elflink] dprintf: always define dprintf2/vdprintf2
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Fri May 18 16:06:03 PDT 2012
Commit-ID: 28b6380be03908a3c3a7a93254e9dcbc0e74592a
Gitweb: http://www.syslinux.org/commit/28b6380be03908a3c3a7a93254e9dcbc0e74592a
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 20 Jun 2011 21:33:38 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Fri, 18 May 2012 16:03:47 -0700
dprintf: always define dprintf2/vdprintf2
Always define dprintf2/vdprintf2 even with no debugging at all
enabled.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
com32/include/dprintf.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/com32/include/dprintf.h b/com32/include/dprintf.h
index 4bdf7a7..b8a3b84 100644
--- a/com32/include/dprintf.h
+++ b/com32/include/dprintf.h
@@ -17,6 +17,13 @@ void dprintf(const char *, ...);
void vdprintf(const char *, va_list);
# endif
+#else
+
+# define dprintf(fmt, ...) ((void)(0))
+# define vdprintf(fmt, ap) ((void)(0))
+
+#endif /* DEBUG */
+
# if DEBUG >= 2
/* Really verbose debugging... */
# define dprintf2 dprintf
@@ -26,11 +33,4 @@ void vdprintf(const char *, va_list);
# define vdprintf2(fmt, ap) ((void)(0))
# endif
-#else
-
-# define dprintf(fmt, ...) ((void)(0))
-# define vdprintf(fmt, ap) ((void)(0))
-
-#endif /* DEBUG */
-
#endif /* _DPRINTF_H */
More information about the Syslinux-commits
mailing list