diff --git a/api/v2/demo/eb-read.c b/api/v2/demo/eb-read.c index 29acc6866cc11b7f4c9ccc0bbb5e67d23db318d2..d710816ec17872a65bebe8b58271b875d6327b6e 100644 --- a/api/v2/demo/eb-read.c +++ b/api/v2/demo/eb-read.c @@ -9,7 +9,10 @@ static void set_stop(eb_user_data_t user, eb_operation_t op, eb_status_t status) if (status != EB_OK) { fprintf(stdout, "%s\n", eb_status(status)); } else { - fprintf(stdout, "%016"EB_DATA_FMT".\n", eb_operation_data(op)); + if (eb_operation_had_error(op)) + fprintf(stdout, " <<-- wishbone segfault -->>\n"); + else + fprintf(stdout, "%016"EB_DATA_FMT".\n", eb_operation_data(op)); } }