Clarify errors, init jtag error code to zero (#1241)
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
This commit is contained in:
parent
cf7cd03d64
commit
135f06cefc
@ -313,17 +313,17 @@ done_processing:
|
|||||||
|
|
||||||
if (dtm->exit_code())
|
if (dtm->exit_code())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "*** FAILED *** (code = %d, seed %d) after %ld cycles\n", dtm->exit_code(), random_seed, trace_count);
|
fprintf(stderr, "*** FAILED *** via dtm (code = %d, seed %d) after %ld cycles\n", dtm->exit_code(), random_seed, trace_count);
|
||||||
ret = dtm->exit_code();
|
ret = dtm->exit_code();
|
||||||
}
|
}
|
||||||
else if (jtag->exit_code())
|
else if (jtag->exit_code())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "*** FAILED *** (code = %d, seed %d) after %ld cycles\n", jtag->exit_code(), random_seed, trace_count);
|
fprintf(stderr, "*** FAILED *** via jtag (code = %d, seed %d) after %ld cycles\n", jtag->exit_code(), random_seed, trace_count);
|
||||||
ret = jtag->exit_code();
|
ret = jtag->exit_code();
|
||||||
}
|
}
|
||||||
else if (trace_count == max_cycles)
|
else if (trace_count == max_cycles)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "*** FAILED *** (timeout, seed %d) after %ld cycles\n", random_seed, trace_count);
|
fprintf(stderr, "*** FAILED *** via trace_count (timeout, seed %d) after %ld cycles\n", random_seed, trace_count);
|
||||||
ret = 2;
|
ret = 2;
|
||||||
}
|
}
|
||||||
else if (verbose || print_cycles)
|
else if (verbose || print_cycles)
|
||||||
|
@ -20,7 +20,8 @@ remote_bitbang_t::remote_bitbang_t(uint16_t port) :
|
|||||||
socket_fd(0),
|
socket_fd(0),
|
||||||
client_fd(0),
|
client_fd(0),
|
||||||
recv_start(0),
|
recv_start(0),
|
||||||
recv_end(0)
|
recv_end(0),
|
||||||
|
err(0)
|
||||||
{
|
{
|
||||||
socket_fd = socket(AF_INET, SOCK_STREAM, 0);
|
socket_fd = socket(AF_INET, SOCK_STREAM, 0);
|
||||||
if (socket_fd == -1) {
|
if (socket_fd == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user