summaryrefslogtreecommitdiff
path: root/klibc_fixups.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-01-13 18:48:33 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:16 -0700
commit68e07a2b0798bd22554c82496455100f29cf6140 (patch)
tree23b2c0d61d0b9c4a5aa74e6d274b3683695519e5 /klibc_fixups.h
parentc03e2c6f5f385c6782416cfade63661374a22c5f (diff)
[PATCH] fix klibc with printf() and gcc
On Mon, Jan 12, 2004 at 05:04:45PM -0800, Greg KH wrote: > Very nice, applied. But I did have to make one small change to get the > code to build properly with klibc: > > > +static void print_record(char *path, struct udevice *dev) > > +{ > > + printf("P: %s\n", path); > > + printf("N: %s\n", dev->name); > > + printf("S: %s\n", dev->symlink); > > + printf("O: %s\n", dev->owner); > > + printf("G: %s\n", dev->group); > > + printf("\n"); > > +} > > Turns out that gcc likes to convert single character printf() calls to > putchar() which is only defined in klibc as a macro :( Just for information. This seems to fix the gcc with klibc :)
Diffstat (limited to 'klibc_fixups.h')
0 files changed, 0 insertions, 0 deletions