Changeset 4934 for trunk/csctapi
- Timestamp:
- 04/06/11 00:14:04 (13 years ago)
- Location:
- trunk/csctapi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/ifd_smargo.c
r4896 r4934 101 101 { 102 102 cs_ddump_mask(D_DEVICE, data, count, "IO: Receiving:"); 103 cs_log("ERROR in smargo_Serial_Read errno=%d", errno);103 cs_log("ERROR in smargo_Serial_Read (errno=%d %s)", errno, strerror(errno)); 104 104 return ERROR; 105 105 } -
trunk/csctapi/io_serial.c
r4683 r4934 455 455 { 456 456 cs_ddump_mask(D_DEVICE, data, count, "IO: Receiving:"); 457 cs_log("ERROR in IO_Serial_Read errno=%d", errno);457 cs_log("ERROR in IO_Serial_Read (errno=%d %s)", errno, strerror(errno)); 458 458 //tcflush (reader->handle, TCIFLUSH); 459 459 return ERROR; … … 496 496 if (u != to_send) 497 497 { 498 cs_log("ERROR in IO_Serial_Write u=%d to_send=%d errno=%d", u, to_send, errno);498 cs_log("ERROR in IO_Serial_Write u=%d to_send=%d (errno=%d %s)", u, to_send, errno, strerror(errno)); 499 499 if ((reader->typ != R_INTERNAL && reader->crdr.active==0) || (reader->crdr.active==1 && reader->crdr.read_written==1)) 500 500 reader->written += u; … … 645 645 select_ret = select(in_fd+1, &rfds, NULL, &erfds, &tv); 646 646 if (select_ret==-1) { 647 cs_log("ERROR in IO_Serial_WaitToRead: errno=%d", errno);647 cs_log("ERROR in IO_Serial_WaitToRead: (errno=%d %s)", errno, strerror(errno)); 648 648 if (errno==EINTR) { 649 649 //try again in case of Interrupted system call … … 660 660 661 661 if (FD_ISSET(in_fd, &erfds)) { 662 cs_log("ERROR in IO_Serial_WaitToRead: fd is in error fds, errno=%d", errno);662 cs_log("ERROR in IO_Serial_WaitToRead: fd is in error fds, (errno=%d %s)", errno, strerror(errno)); 663 663 return ERROR; 664 664 } … … 707 707 if (FD_ISSET(out_fd, &ewfds)) 708 708 { 709 cs_log("ERROR in IO_Serial_WaitToWrite: fd is in error fds, errno=%d", errno);709 cs_log("ERROR in IO_Serial_WaitToWrite: fd is in error fds, (errno=%d %s)", errno, strerror(errno)); 710 710 return ERROR; 711 711 }
Note:
See TracChangeset
for help on using the changeset viewer.