Skip to content
Commit f7a678a8 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

powerpc/udbg: Make it safe to call udbg_printf() always



Make udbg_printf() check if udbg_putc is set, and if not just return.
This makes it safe to call udbg_printf() anytime, even when a udbg
backend has not been registered, which means we can avoid some ifdefs
at call sites.

Signed-off-by: default avatarQian Cai <cai@lca.pw>
[mpe: Split out of larger patch, write change log]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent cd1d55f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment