From 7bf31a6da0224d58fe8c196c5bdb1764790d080c Mon Sep 17 00:00:00 2001 From: Tomek CEDRO Date: Tue, 21 Jun 2011 21:56:22 +0200 Subject: INTERFACE/SIGNAL: Added "find" option to tcl command interface_signal. Fixed "del" command. Added syntax check. Minor backend cosmetics. --- src/interface/interface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/interface') 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; } -- cgit v1.2.3