From b715a81f5b95144118d8f946d4191f1dc844783a Mon Sep 17 00:00:00 2001 From: David Brownell Date: Wed, 25 Nov 2009 16:38:08 -0800 Subject: 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 --- src/target/etm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/etm.c') diff --git a/src/target/etm.c b/src/target/etm.c index 4e7f917..2ea7345 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -1374,7 +1374,7 @@ COMMAND_HANDLER(handle_etm_config_command) arm = target_to_arm(target); if (!is_arm(arm)) { command_print(CMD_CTX, "target '%s' is '%s'; not an ARM", - target->cmd_name, target_get_name(target)); + target->cmd_name, target_type_name(target)); return ERROR_FAIL; } -- cgit v1.1