summaryrefslogtreecommitdiff
path: root/src/interface
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-06-21 21:56:22 +0200
committerTomek CEDRO <cederom@tlen.pl>2011-06-21 21:56:22 +0200
commit7bf31a6da0224d58fe8c196c5bdb1764790d080c (patch)
tree3c6be7dc66c3b7e68f540b1d25d83bd52b41a634 /src/interface
parente16521d3a16778fdacb62f97611a3b03baa65edc (diff)
downloadopenocd+libswd-7bf31a6da0224d58fe8c196c5bdb1764790d080c.tar.gz
openocd+libswd-7bf31a6da0224d58fe8c196c5bdb1764790d080c.tar.bz2
openocd+libswd-7bf31a6da0224d58fe8c196c5bdb1764790d080c.tar.xz
openocd+libswd-7bf31a6da0224d58fe8c196c5bdb1764790d080c.zip
INTERFACE/SIGNAL: Added "find" option to tcl command interface_signal. Fixed "del" command. Added syntax check. Minor backend cosmetics.
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface/interface.c b/src/interface/interface.c
index e19bbc5b..1c65a8fe 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -43,9 +43,9 @@ oocd_interface_signal_t *oocd_interface_signal_find(char *name){
LOG_ERROR("Interface does not yet exist!");
return NULL;
}
- // Check if interface signal to work on already exists
+ // Check if interface signal to already exists
if (!jtag_interface->signal){
- LOG_WARNING("There are no signals defined yet.");
+ LOG_DEBUG("No interface signals defined.");
return NULL;
}
// Check if signal name is correct
@@ -64,7 +64,7 @@ oocd_interface_signal_t *oocd_interface_signal_find(char *name){
sig=sig->next;
}
// If signal is not found return null pointer.
- LOG_DEBUG("Signal %s not (yet) on the list.", name);
+ LOG_DEBUG("Signal %s not defined.", name);
return NULL;
}
/** Add new signal to the interface.
@@ -160,7 +160,7 @@ int oocd_interface_signal_del(char *name){
}
// Check if interface any signal exist
if (!jtag_interface->signal){
- LOG_DEBUG("There are no signals defined yet.");
+ LOG_ERROR("Signal list is empty!");
return ERROR_FAIL;
}