Re: [EE] Saving "printf" arguments for later? Real-time on slow processor.

smplx <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.pic
Message-ID <[email protected]>
OK I've found 2 bugs in alt_printf.c these have now been fixed in:

http://xcprod.com/ALT_PRINTF/alt_printf_v2.tgz



version 1 could not cope with:

     if (x1 == y1) printf("point(%d, %d)\n", x2, y2);

it would lose everything to the left of printf and not group
the result. it would produce:

     alt_prt_fmt("point(%d, %d)\n");
     alt_prt_int( x2);
     alt_prt_int( y2);

version 2 now produces:

     if (x1 == y1) {
     alt_prt_fmt("point(%d, %d)\n");
     alt_prt_int( x2);
     alt_prt_int( y2);
     }

Regards
Sergio Masci
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.