summaryrefslogtreecommitdiffstats
path: root/hdata/paca.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-05-15 18:20:48 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-16 15:41:35 +1000
commitad73840e911c20ae6ee619ffbbc533ee838a0fa9 (patch)
treea2b22d0c2866facd513680da4e8b0d363d56dcf1 /hdata/paca.c
parent8af5b3c084fa51b553cb7793304c4a258a2cf420 (diff)
downloadblackbird-skiboot-ad73840e911c20ae6ee619ffbbc533ee838a0fa9.tar.gz
blackbird-skiboot-ad73840e911c20ae6ee619ffbbc533ee838a0fa9.zip
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 <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/paca.c')
-rw-r--r--hdata/paca.c4
1 files changed, 2 insertions, 2 deletions
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");
OpenPOWER on IntegriCloud