* [PATCH] powerpc/ps3: Remove dead printf() calls from the bootwrapper
@ 2026-11-05 15:27 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2026-11-05 15:27 UTC (permalink / raw)
To: Geoff Levand, Madhavan Srinivasan, Michael Ellerman,
Nicholas Piggin, Christophe Leroy (CS GROUP),
Ritesh Harjani (IBM), Shrikanth Hegde
Cc: Thorsten Blum, linuxppc-dev, linux-kernel
The bootwrapper uses an empty console write callback, so its printf()
calls produce no output. Remove them and the empty ps3_console_write()
callback. Also leave console_ops.write unset and remove now-unused
header includes.
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
arch/powerpc/boot/ps3.c | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/arch/powerpc/boot/ps3.c b/arch/powerpc/boot/ps3.c
index 89ff46b8b225..c557f90cdd82 100644
--- a/arch/powerpc/boot/ps3.c
+++ b/arch/powerpc/boot/ps3.c
@@ -6,12 +6,10 @@
* Copyright 2007 Sony Corp.
*/
-#include <stdarg.h>
#include <stddef.h>
#include "types.h"
#include "elf.h"
#include "string.h"
-#include "stdio.h"
#include "page.h"
#include "ops.h"
@@ -37,18 +35,10 @@ static void prep_cmdline(void *chosen)
getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1);
else
setprop_str(chosen, "bootargs", cmdline);
-
- printf("cmdline: '%s'\n", cmdline);
-}
-
-static void ps3_console_write(const char *buf, int len)
-{
}
static void ps3_exit(void)
{
- printf("ps3_exit\n");
-
/* lv1_panic will shutdown the lpar. */
lv1_panic(0); /* zero = do not reboot */
@@ -83,12 +73,6 @@ static int ps3_repository_read_rm_size(u64 *rm_size)
0x7075000000000000ULL, ppe_id, 0x726d5f73697a6500ULL, rm_size,
&v2);
- printf("%s:%d: ppe_id %lu \n", __func__, __LINE__,
- (unsigned long)ppe_id);
- printf("%s:%d: lpar_id %lu \n", __func__, __LINE__,
- (unsigned long)lpar_id);
- printf("%s:%d: rm_size %llxh \n", __func__, __LINE__, *rm_size);
-
return result ? -1 : 0;
}
@@ -107,11 +91,8 @@ void platform_init(void)
unsigned long ft_addr;
u64 rm_size;
- console_ops.write = ps3_console_write;
platform_ops.exit = ps3_exit;
- printf("\n-- PS3 bootwrapper --\n");
-
simple_alloc_init(_end, heapsize, 32, 64);
fdt_init(_dtb_start);
@@ -131,8 +112,6 @@ void platform_init(void)
ps3_copy_vectors();
- printf(" flat tree at 0x%lx\n\r", ft_addr);
-
((kernel_entry_t)0)(ft_addr, 0, NULL);
ps3_exit();
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-05 15:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05 15:27 [PATCH] powerpc/ps3: Remove dead printf() calls from the bootwrapper Thorsten Blum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.