[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/printf PrintfP.nc, 1.14, 1.15

Kevin Klues klueska at users.sourceforge.net
Mon Mar 9 11:15:51 PDT 2009


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/printf
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20747

Modified Files:
	PrintfP.nc 
Log Message:
cahnge to cutoff for flushing at half the buffer size

Index: PrintfP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/printf/PrintfP.nc,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** PrintfP.nc	9 Jul 2008 05:16:16 -0000	1.14
--- PrintfP.nc	9 Mar 2009 18:15:49 -0000	1.15
***************
*** 168,172 ****
    int uart_putchar(char c, FILE *stream) __attribute__((noinline)) @C() @spontaneous() {
  #endif
!     if((state == S_STARTED) && (call Queue.size() >= 5*sizeof(printf_msg_t))) {
        state = S_FLUSHING;
        sendNext();
--- 168,172 ----
    int uart_putchar(char c, FILE *stream) __attribute__((noinline)) @C() @spontaneous() {
  #endif
!     if((state == S_STARTED) && (call Queue.size() >= ((PRINTF_BUFFER_SIZE)/2))) {
        state = S_FLUSHING;
        sendNext();



More information about the Tinyos-2-commits mailing list