mtrr: Don't show an invalid CPU number
When U-Boot did not do the MP init, we don't get an actual CPU number here. Skip printing it in that case. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
0a9a4384c1
commit
0fb19ffe30
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ static int do_mtrr(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
printf("CPU %d:\n", i);
|
||||
ret = do_mtrr_list(reg_count, i);
|
||||
if (ret) {
|
||||
printf("Failed to read CPU %d (err=%d)\n", i,
|
||||
printf("Failed to read CPU %s (err=%d)\n",
|
||||
i < MP_SELECT_ALL ? simple_itoa(i) : "",
|
||||
ret);
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue