error handling: the error number is not part of the user interface
Do not propagate error number to user. This is for internal programming purposes only. Error messages to the user is reported as text via LOG_ERROR(). Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
+1
-1
@@ -695,7 +695,7 @@ void jtag_add_reset(int req_tlr_or_trst, int req_srst)
|
||||
retval = jtag_execute_queue();
|
||||
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_ERROR("TRST/SRST error %d", retval);
|
||||
LOG_ERROR("TRST/SRST error");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,8 +82,8 @@ static int transport_select(struct command_context *ctx, const char *name)
|
||||
if (retval == ERROR_OK)
|
||||
session = t;
|
||||
else
|
||||
LOG_ERROR("Error %d selecting '%s' as "
|
||||
"transport", retval, t->name);
|
||||
LOG_ERROR("Error selecting '%s' as "
|
||||
"transport", t->name);
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user