benchmarks/latmus: do not display priority if n/a

Signed-off-by: Philippe Gerum <rpm@xenomai.org>
This commit is contained in:
Philippe Gerum 2020-05-31 21:41:55 +02:00
parent 7c5234dd6e
commit 1fcb27776a
1 changed files with 5 additions and 4 deletions

View File

@ -310,11 +310,12 @@ static void log_results(struct latmus_measurement *meas,
if (verbosity > 0 && data_lines && (round % data_lines) == 0) {
time(&now);
dt = now - start_time;
printf("RTT| %.2ld:%.2ld:%.2ld "
"(%s, %u us period, priority %d, CPU%d%s)\n",
printf("RTT| %.2ld:%.2ld:%.2ld (%s, %u us period,",
dt / 3600, (dt / 60) % 60, dt % 60,
context_labels[context_type], period_usecs,
responder_priority,
context_labels[context_type], period_usecs);
if (context_type != EVL_LAT_IRQ && context_type != EVL_LAT_SIRQ)
printf(" priority %d,", responder_priority);
printf(" CPU%d%s)\n",
responder_cpu,
responder_cpu_state & EVL_CPU_ISOL ? "" : "-noisol");
printf("RTH|%11s|%11s|%11s|%8s|%6s|%11s|%11s\n",