From a13764b5d0619648b67bdc5435f69ca903b18736 Mon Sep 17 00:00:00 2001
From: oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Date: Wed, 16 Apr 2008 19:17:15 +0000
Subject: [PATCH] fix for gaffe in  555 that stopped JTAG chain examine +
 validate from running.

git-svn-id: svn://svn.berlios.de/openocd/trunk@588 b42882b7-edfa-0310-969c-e2dbd0fdcd60
---
 src/jtag/jtag.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index 74f00900c..17f212c33 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -1523,7 +1523,7 @@ static int jtag_init_inner(struct command_context_s *cmd_ctx)
 	jtag_device_t *device;
 	int retval;
 
-	LOG_DEBUG("-");
+	LOG_DEBUG("Init JTAG chain");
 	
 	device = jtag_devices;
 	jtag_ir_scan_size = 0;
@@ -1536,7 +1536,7 @@ static int jtag_init_inner(struct command_context_s *cmd_ctx)
 	}
 	
 	jtag_add_tlr();
-	if ((retval=jtag_execute_queue())==ERROR_OK)
+	if ((retval=jtag_execute_queue())!=ERROR_OK)
 		return retval;
 
 	/* examine chain first, as this could discover the real chain layout */
-- 
GitLab