[syslinux:master] chain.c: Fix misplaced #endif breaking non-DEBUG builds

syslinux-bot for H. Peter Anvin hpa at linux.intel.com
Mon Mar 26 15:03:33 PDT 2012


Commit-ID:  b82f635b7ef050a1c7106b213c292134aa8e6c55
Gitweb:     http://www.syslinux.org/commit/b82f635b7ef050a1c7106b213c292134aa8e6c55
Author:     H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Mon, 26 Mar 2012 14:57:54 -0700
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Mon, 26 Mar 2012 14:57:54 -0700

chain.c: Fix misplaced #endif breaking non-DEBUG builds

Fix misplaced #endif which made it impossible to build without DEBUG.

Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>

---
 com32/chain/chain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/com32/chain/chain.c b/com32/chain/chain.c
index f458253..30153c4 100644
--- a/com32/chain/chain.c
+++ b/com32/chain/chain.c
@@ -471,10 +471,10 @@ static int setup_handover(const struct part_iter *iter,
 #ifdef DEBUG
 	dprintf("MBR handover:\n");
 	disk_dos_part_dump(ha);
+#endif
     } else {
 	/* shouldn't ever happen */
 	goto bail;
-#endif
     }
 
     data->base = 0x7be;


More information about the Syslinux-commits mailing list