This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Change output stream for printf
- From: "Nicolas Brouard" <nicolas dot brouard at silicomp dot ca>
- To: "eCos Discussion" <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 15 Nov 2004 11:32:07 -0500
- Subject: [ECOS] Change output stream for printf
Hi,
I would like to change the ouput stream for printf. For now, my printf
function puts characters over serial channel (with tty-mode serial device
driver on hardware serial device driver).
I would like printf puts characters over a socket for example.
How can I change the behaviour of printf?
I know that I can use diag_init_putc() to do that for diag_printf, but for
printf?
Thank's in advance.
Nicolas Brouard
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss