Author: snelson Date: 2010-01-10 00:46:39 +0100 (Sun, 10 Jan 2010) New Revision: 848
Modified: trunk/serial.c Log: Convert all messages in serial.c to the new message infrastructure. Signed-off-by: Sean Nelson audiohacked@gmail.com Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: trunk/serial.c =================================================================== --- trunk/serial.c 2010-01-09 23:34:45 UTC (rev 847) +++ trunk/serial.c 2010-01-09 23:46:39 UTC (rev 848) @@ -139,7 +139,7 @@ for (i = 0;; i++) { if (sp_baudtable[i].baud == 0) { close(fd); - fprintf(stderr, + msg_perr( "Error: cannot configure for baudrate %d\n", baud); exit(1); @@ -193,7 +193,7 @@ if (tmp == -1) return 1; if (!tmp) - printf_debug("Empty write\n"); + msg_pdbg("Empty write\n"); writecnt -= tmp; buf += tmp; } @@ -214,7 +214,7 @@ if (tmp == -1) return 1; if (!tmp) - printf_debug("Empty read\n"); + msg_pdbg("Empty read\n"); readcnt -= tmp; buf += tmp; }