Skip to content

Commit

Permalink
cpu: Quieten OS endian switch messages
Browse files Browse the repository at this point in the history
Users see these when loading an OS from Petitboot:

 [  119.486794100,5] OPAL: Switch to big-endian OS
 [  120.022302604,5] OPAL: Switch to little-endian OS

Which is expected and doesn't provide any information the user can act
on. Switch them to PR_INFO so they still appear in the log, but not on
the serial console.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
shenki authored and stewartsmith committed Oct 24, 2018
1 parent b6ebee0 commit a3a8f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1467,9 +1467,9 @@ static int64_t opal_reinit_cpus(uint64_t flags)
prlog(PR_DEBUG, "OPAL: CPU re-init with flags: 0x%llx\n", flags);

if (flags & OPAL_REINIT_CPUS_HILE_LE)
prlog(PR_NOTICE, "OPAL: Switch to little-endian OS\n");
prlog(PR_INFO, "OPAL: Switch to little-endian OS\n");
else if (flags & OPAL_REINIT_CPUS_HILE_BE)
prlog(PR_NOTICE, "OPAL: Switch to big-endian OS\n");
prlog(PR_INFO, "OPAL: Switch to big-endian OS\n");

again:
lock(&reinit_lock);
Expand Down

0 comments on commit a3a8f7d

Please sign in to comment.