mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 07:03:38 +00:00
[PATCH] remove printk usage in arch/ppc64/boot/prom.c
remove the printk usage in the zImage. we are not there, yet. Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
a58dfbbb2a
commit
e6019db5a7
2 changed files with 2 additions and 15 deletions
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
extern void *finddevice(const char *);
|
extern void *finddevice(const char *);
|
||||||
extern int getprop(void *, const char *, void *, int);
|
extern int getprop(void *, const char *, void *, int);
|
||||||
extern void printk(char *fmt, ...);
|
|
||||||
extern void printf(const char *fmt, ...);
|
extern void printf(const char *fmt, ...);
|
||||||
extern int sprintf(char *buf, const char *fmt, ...);
|
extern int sprintf(char *buf, const char *fmt, ...);
|
||||||
void gunzip(void *, int, unsigned char *, int *);
|
void gunzip(void *, int, unsigned char *, int *);
|
||||||
|
|
|
@ -40,7 +40,7 @@ void *finddevice(const char *name);
|
||||||
int getprop(void *phandle, const char *name, void *buf, int buflen);
|
int getprop(void *phandle, const char *name, void *buf, int buflen);
|
||||||
void chrpboot(int a1, int a2, void *prom); /* in main.c */
|
void chrpboot(int a1, int a2, void *prom); /* in main.c */
|
||||||
|
|
||||||
void printk(char *fmt, ...);
|
int printf(char *fmt, ...);
|
||||||
|
|
||||||
/* there is no convenient header to get this from... -- paulus */
|
/* there is no convenient header to get this from... -- paulus */
|
||||||
extern unsigned long strlen(const char *);
|
extern unsigned long strlen(const char *);
|
||||||
|
@ -220,7 +220,7 @@ readchar(void)
|
||||||
case 1:
|
case 1:
|
||||||
return ch;
|
return ch;
|
||||||
case -1:
|
case -1:
|
||||||
printk("read(stdin) returned -1\r\n");
|
printf("read(stdin) returned -1\r\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -627,18 +627,6 @@ int sprintf(char * buf, const char *fmt, ...)
|
||||||
|
|
||||||
static char sprint_buf[1024];
|
static char sprint_buf[1024];
|
||||||
|
|
||||||
void
|
|
||||||
printk(char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
int n;
|
|
||||||
|
|
||||||
va_start(args, fmt);
|
|
||||||
n = vsprintf(sprint_buf, fmt, args);
|
|
||||||
va_end(args);
|
|
||||||
write(stdout, sprint_buf, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
printf(char *fmt, ...)
|
printf(char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue