This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Printf function error
- From: "Aniket S Joshi" <aniketsj at myw dot ltindia dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 20 Feb 2004 17:34:59 +0530
- Subject: [ECOS] Printf function error
Hi All,
Working on : Hitachi, Sh7729 Board
Duration: from 8th Feb 2004
Poblem:
Not able to see the output as per the documents
Decscription:
I am tring to run the example program "towthreads.c" But it is giving output as follows
Entering twothreads' cyg_user_start()
function
Beginning execution; thread data is 0
Beginning execution; thread data is 1
Thread 00000000000000000000000000000000000000..........
Pressing CTRL+C to stop this 00000000000000000.
When I debuged this problem i found Printf function is the culprit.
This problem is arrises only if printf statement is similar like
printf("Thread %d: and now a delay of %d clock ticks\n",
message, delay);
i.e Printing any digit value (%d) in printf statement.
I changed the printf function to printf("Thread \n"); then it is woring fine but it is of no use.
Pls help me
Aniket
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss