powerpc/rtas: define pr_fmt and convert printk call sites
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 18 Nov 2022 15:07:46 +0000 (09:07 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 7 Dec 2022 11:40:43 +0000 (22:40 +1100)
commitf975b6559bac510f1b1b39637997bb240f0a9969
tree248ac90307b97e2246346d4a89ec7adb6194025f
parent9581f8a00777a073fdd8146659a51ca007cae8d6
powerpc/rtas: define pr_fmt and convert printk call sites

Set pr_fmt to "rtas: " and convert the handful of printk() uses in
rtas.c, adjusting the messages to remove now-redundant "RTAS"
strings.

Note that rtas_restart(), rtas_power_off(), and rtas_halt() all
currently use printk() without specifying a log level. These have been
changed to use pr_emerg(), which matches the behavior of
rtas_os_term().

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221118150751.469393-9-nathanl@linux.ibm.com
arch/powerpc/kernel/rtas.c