This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help needed : Problem with printf



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]