summaryrefslogtreecommitdiff
path: root/src/target/arm11_dbgtap.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-19 09:31:51 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-19 09:31:51 +0000
commit6e4680fc26bff1940e7109bb0d1a2bae1ef631c6 (patch)
treefa02b97fccdd512b59027b9777fc34ebcbb1c34c /src/target/arm11_dbgtap.c
parent66ef0cee519b9a51419c13b6bdb7191febc20170 (diff)
downloadopenocd_libswd-6e4680fc26bff1940e7109bb0d1a2bae1ef631c6.tar.gz
openocd_libswd-6e4680fc26bff1940e7109bb0d1a2bae1ef631c6.tar.bz2
openocd_libswd-6e4680fc26bff1940e7109bb0d1a2bae1ef631c6.tar.xz
openocd_libswd-6e4680fc26bff1940e7109bb0d1a2bae1ef631c6.zip
removed a couple of exit()'s from error handling.
git-svn-id: svn://svn.berlios.de/openocd/trunk@932 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm11_dbgtap.c')
-rw-r--r--src/target/arm11_dbgtap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/arm11_dbgtap.c b/src/target/arm11_dbgtap.c
index 3513e599..bef62f9a 100644
--- a/src/target/arm11_dbgtap.c
+++ b/src/target/arm11_dbgtap.c
@@ -1,6 +1,8 @@
/***************************************************************************
* Copyright (C) 2008 digenius technology GmbH. *
* *
+ * Copyright (C) 2008 Oyvind Harboe oyvind.harboe@zylin.com *
+ * *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
@@ -129,7 +131,7 @@ static int arm11_in_handler_SCAN_N(u8 *in_value, void *priv, struct scan_field_s
if (v != 0x10)
{
LOG_ERROR("'arm11 target' JTAG communication error SCREG SCAN OUT 0x%02x (expected 0x10)", v);
- exit(-1);
+ return ERROR_FAIL;
}
JTAG_DEBUG("SCREG SCAN OUT 0x%02x", v);