This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Help needed : Problem with printf
- From: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- To: Banit Agrawal <banit at cse dot iitkgp dot ernet dot in>
- Cc: newlib at sources dot redhat dot com
- Date: Mon, 05 Aug 2002 08:37:46 -0500
- Subject: Re: Help needed : Problem with printf
- Organization: OAR Corporation
- References: <LDEKKBKFBEIOILIGJMFBKECCCDAA.banit@cse.iitkgp.ernet.in>
Banit Agrawal wrote:
>
> Hi,
>
> I have ported newlib for a RISC processor using cross-compiler tools.
> I am having some problems with printf output.
>
> suppose for this statement:
>
> printf("hello world");
>
> it doesn't print anything in the output.
standard output is usually line buffered which means that output is
buffered until you print a newline.
> But if I write this as
>
> printf("hello world\n");
>
> it prints the string hello world and some 000000000 characters in newline.
> I have used newlib version 1.1.0.
Except for the "000000000 characters" that is expected behavior. I
would suspect
that your hardware putc routine is not 100% right.
> Any pointers in this direction will be useful.
>
> Thanks,
> Banit
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985