From 330cf5a6bb23063947d9cff661b61a82d3221c7a Mon Sep 17 00:00:00 2001 From: oharboe Date: Sun, 17 Aug 2008 19:40:17 +0000 Subject: fixed not halted error messages git-svn-id: svn://svn.berlios.de/openocd/trunk@925 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/arm11.c | 8 ++++---- src/target/armv4_5.c | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/target') diff --git a/src/target/arm11.c b/src/target/arm11.c index 7c947fc2..cc584c38 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -783,10 +783,10 @@ int arm11_resume(struct target_s *target, int current, u32 address, int handle_b LOG_DEBUG("target->state: %s", target_state_strings[target->state]); if (target->state != TARGET_HALTED) - { - LOG_WARNING("target was not halted"); - return ERROR_TARGET_NOT_HALTED; - } + { + LOG_ERROR("Target not halted"); + return ERROR_TARGET_NOT_HALTED; + } if (!current) R(PC) = address; diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c index e546e404..ac73c567 100644 --- a/src/target/armv4_5.c +++ b/src/target/armv4_5.c @@ -181,6 +181,7 @@ int armv4_5_get_core_reg(reg_t *reg) if (target->state != TARGET_HALTED) { + LOG_ERROR("Target not halted"); return ERROR_TARGET_NOT_HALTED; } -- cgit v1.2.3