summaryrefslogtreecommitdiff
path: root/src/target/embeddedice.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-25 16:38:08 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-25 16:38:08 -0800
commitb715a81f5b95144118d8f946d4191f1dc844783a (patch)
treeb3c553cd43e489f00105d4ba52bccafa1705375f /src/target/embeddedice.c
parentac06d41fc723c264e989673be16f9f21a1896518 (diff)
downloadopenocd+libswd-b715a81f5b95144118d8f946d4191f1dc844783a.tar.gz
openocd+libswd-b715a81f5b95144118d8f946d4191f1dc844783a.tar.bz2
openocd+libswd-b715a81f5b95144118d8f946d4191f1dc844783a.tar.xz
openocd+libswd-b715a81f5b95144118d8f946d4191f1dc844783a.zip
target: target_get_name() --> target_type_name()
There are two names that may matter on a per-target basis. One is a per-instance name (for example, "at91sam7s.cpu"). The other is the name of its type (for example, "arm7tdmi"), which is shared among multiple targets. Currently target_get_name() returns the type name, which is misleading and is rarely appropriate for target diagnostics. Rename that as target_type_name(). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/embeddedice.c')
-rw-r--r--src/target/embeddedice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/embeddedice.c b/src/target/embeddedice.c
index 3947e26c..cca9cc06 100644
--- a/src/target/embeddedice.c
+++ b/src/target/embeddedice.c
@@ -281,8 +281,8 @@ embeddedice_build_reg_cache(struct target *target, struct arm7_9_common *arm7_9)
* in some unusual bits. Let feroceon.c validate it
* and do the appropriate setup itself.
*/
- if (strcmp(target_get_name(target), "feroceon") == 0 ||
- strcmp(target_get_name(target), "dragonite") == 0)
+ if (strcmp(target_type_name(target), "feroceon") == 0 ||
+ strcmp(target_type_name(target), "dragonite") == 0)
break;
LOG_ERROR("unknown EmbeddedICE version "
"(comms ctrl: 0x%8.8" PRIx32 ")",