aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.h
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/target.h
parentac06d41fc723c264e989673be16f9f21a1896518 (diff)
downloadriscv-openocd-b715a81f5b95144118d8f946d4191f1dc844783a.zip
riscv-openocd-b715a81f5b95144118d8f946d4191f1dc844783a.tar.gz
riscv-openocd-b715a81f5b95144118d8f946d4191f1dc844783a.tar.bz2
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/target.h')
-rw-r--r--src/target/target.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/target/target.h b/src/target/target.h
index ee40209..61bc68a 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -280,11 +280,12 @@ struct target* get_current_target(struct command_context *cmd_ctx);
struct target *get_target(const char *id);
/**
- * Get the target name.
+ * Get the target type name.
*
* This routine is a wrapper for the target->type->name field.
+ * Note that this is not an instance-specific name for his target.
*/
-const char *target_get_name(struct target *target);
+const char *target_type_name(struct target *target);
/**
* Examine the specified @a target, letting it perform any