1 // SPDX-License-Identifier: GPL-2.0
3 * printf.c: Internal prom library printf facility.
5 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
8 /* This routine is internal to the prom library, no one else should know
9 * about or use it! It's simple and smelly anyway....
12 #include <linux/kernel.h>
14 #include <asm/openprom.h>
15 #include <asm/oplib.h>
18 extern int kgdb_initialized;
21 static char ppbuf[1024];
24 prom_printf(char *fmt, ...)
33 vsprintf(ppbuf + 1, fmt, args) + 1;
35 vsprintf(ppbuf, fmt, args);
41 if (kgdb_initialized) {
42 pr_info("kgdb_initialized = %d\n", kgdb_initialized);
46 while((ch = *(bptr++)) != 0) {