summaryrefslogtreecommitdiffstats
path: root/serial.c
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-01-09 23:46:39 +0000
committerSean Nelson <audiohacked@gmail.com>2010-01-09 23:46:39 +0000
commitefceddb82b077e8545d196867ef3c5823f0f7be8 (patch)
treef16917a1499edac436385ca086d3812829a89ead /serial.c
parentae69722ff7057c0032a2c7c243a771bf4468cbbb (diff)
downloadflashrom-efceddb82b077e8545d196867ef3c5823f0f7be8.zip
flashrom-efceddb82b077e8545d196867ef3c5823f0f7be8.tar.gz
Convert all messages in serial.c to the new message infrastructure
Corresponding to flashrom svn r848. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/serial.c b/serial.c
index 76451b2..0fbe029 100644
--- a/serial.c
+++ b/serial.c
@@ -139,7 +139,7 @@ fdtype sp_openserport(char *dev, unsigned int baud)
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 @@ int serialport_write(unsigned char *buf, unsigned int writecnt)
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 @@ int serialport_read(unsigned char *buf, unsigned int readcnt)
if (tmp == -1)
return 1;
if (!tmp)
- printf_debug("Empty read\n");
+ msg_pdbg("Empty read\n");
readcnt -= tmp;
buf += tmp;
}
OpenPOWER on IntegriCloud