Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4014
b: refs/heads/master
c: e6019db
h: refs/heads/master
v: v3
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Jun 28, 2005
1 parent 6fa329a commit 76c8aaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a58dfbbb2a350808253a8b5037f5ec5b9a68516d
refs/heads/master: e6019db5a7f110839c62cefc073b6dc1143d6403
1 change: 0 additions & 1 deletion trunk/arch/ppc64/boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

extern void *finddevice(const char *);
extern int getprop(void *, const char *, void *, int);
extern void printk(char *fmt, ...);
extern void printf(const char *fmt, ...);
extern int sprintf(char *buf, const char *fmt, ...);
void gunzip(void *, int, unsigned char *, int *);
Expand Down
16 changes: 2 additions & 14 deletions trunk/arch/ppc64/boot/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void *finddevice(const char *name);
int getprop(void *phandle, const char *name, void *buf, int buflen);
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 */
extern unsigned long strlen(const char *);
Expand Down Expand Up @@ -220,7 +220,7 @@ readchar(void)
case 1:
return ch;
case -1:
printk("read(stdin) returned -1\r\n");
printf("read(stdin) returned -1\r\n");
return -1;
}
}
Expand Down Expand Up @@ -627,18 +627,6 @@ int sprintf(char * buf, const char *fmt, ...)

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
printf(char *fmt, ...)
{
Expand Down

0 comments on commit 76c8aaa

Please sign in to comment.