Commit ebb4f5fc authored by Sean Nelson's avatar Sean Nelson
Browse files

Convert all messages in serial.c to the new message infrastructure


Corresponding to flashrom svn r848.
Signed-off-by: default avatarSean Nelson <audiohacked@gmail.com>
Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
parent f7f7a55c
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment