diff options
author | Tomek CEDRO <cederom@tlen.pl> | 2012-01-02 23:32:15 +0000 |
---|---|---|
committer | Tomek CEDRO <cederom@tlen.pl> | 2012-01-02 23:32:15 +0000 |
commit | 95fd35cf87462e8940ce33de17b976554c37bd74 (patch) | |
tree | f63bcaafda64410175add35f6a39e637c389d06a /src/interface/interface.c | |
parent | 341b3167393489b4f1258af65ec1938c06be642a (diff) | |
download | openocd+libswd-95fd35cf87462e8940ce33de17b976554c37bd74.tar.gz openocd+libswd-95fd35cf87462e8940ce33de17b976554c37bd74.tar.bz2 openocd+libswd-95fd35cf87462e8940ce33de17b976554c37bd74.tar.xz openocd+libswd-95fd35cf87462e8940ce33de17b976554c37bd74.zip |
interface: minor updates in debug messages.
Diffstat (limited to 'src/interface/interface.c')
-rw-r--r-- | src/interface/interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface/interface.c b/src/interface/interface.c index 048f9cbe..31c40f32 100644 --- a/src/interface/interface.c +++ b/src/interface/interface.c @@ -38,7 +38,7 @@ extern struct jtag_interface *jtag_interface; * \return pointer to signal structure in memory if found, NULL otherwise. */ oocd_interface_signal_t *oocd_interface_signal_find(char *name){ - LOG_DEBUG("Searching for signal \"%s\"", name); + //LOG_DEBUG("Searching for interface signal \"%s\"", name); // Check if interface already exists if (!jtag_interface){ LOG_ERROR("Interface does not yet exist!"); @@ -51,7 +51,7 @@ oocd_interface_signal_t *oocd_interface_signal_find(char *name){ } // Check if signal name is correct if (!name || strncmp(name, " ", 1)==0){ - LOG_ERROR("Signal name cannot be empty."); + LOG_ERROR("Interface signal name cannot be empty."); return NULL; } // Check if signal name already exist @@ -59,13 +59,13 @@ oocd_interface_signal_t *oocd_interface_signal_find(char *name){ sig=jtag_interface->signal; while (sig) { if (!strncasecmp(sig->name, name, 32)){ - LOG_DEBUG("Signal %s already exists.", sig->name); + LOG_DEBUG("Interface signal %s found.", sig->name); return sig; } sig=sig->next; } // If signal is not found return null pointer. - LOG_DEBUG("Signal %s not (yet) defined.", name); + LOG_WARNING("Interface signal %s not found.", name); return NULL; } /** Add new signal to the interface. |