Skip to content

Commit

Permalink
core: Instrument error on CPU number mismatch
Browse files Browse the repository at this point in the history
Allows to identify the reason if CONFIG_TRACE_ERROR is enabled.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka committed Nov 27, 2016
1 parent cbd22d8 commit 91917ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypervisor/setup.c
Expand Up @@ -139,7 +139,7 @@ static void init_late(void)
for_each_cpu(cpu, root_cell.cpu_set)
expected_cpus++;
if (hypervisor_header.online_cpus != expected_cpus) {
error = -EINVAL;
error = trace_error(-EINVAL);
return;
}

Expand Down

0 comments on commit 91917ea

Please sign in to comment.