From ad73840e911c20ae6ee619ffbbc533ee838a0fa9 Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Mon, 15 May 2017 18:20:48 +1000 Subject: hdata: Don't use printf Using printf() here results in the output going into the stdout stream when running the hdata_to_dt test. This results in an invalid dtb output so lets not do that. Signed-off-by: Oliver O'Halloran Signed-off-by: Stewart Smith --- hdata/paca.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hdata/paca.c') diff --git a/hdata/paca.c b/hdata/paca.c index 1938d4af..eaad0d4d 100644 --- a/hdata/paca.c +++ b/hdata/paca.c @@ -49,7 +49,7 @@ static struct dt_node *add_cpu_node(struct dt_node *cpus, no = be32_to_cpu(id->process_interrupt_line); ve_flags = be32_to_cpu(id->verify_exists_flags); - printf("CPU[%i]: PIR=%i RES=%i %s %s(%u threads)\n", + prlog(PR_INFO, "CPU[%i]: PIR=%i RES=%i %s %s(%u threads)\n", paca_index(paca), be32_to_cpu(id->pir), no, ve_flags & CPU_ID_PACA_RESERVED ? "**RESERVED**" : cpu_state(ve_flags), @@ -251,7 +251,7 @@ static bool __paca_parse(void) okay = false; } - printf("CPU[%i]: PIR=%i RES=%i %s\n", + prlog(PR_INFO, "CPU[%i]: PIR=%i RES=%i %s\n", paca_index(paca), be32_to_cpu(id->pir), be32_to_cpu(id->process_interrupt_line), okay ? "OK" : "UNAVAILABLE"); -- cgit v1.2.1