redirected some error msg. to debug log

This commit is contained in:
Dooho Yi 2025-10-09 23:47:39 +09:00
parent da2e52badc
commit 9078fabbd3

View file

@ -1339,7 +1339,8 @@ endsendevent:
err = write(x->comhandle,(char *)x->x_outbuf, x->x_outbuf_wr_index); err = write(x->comhandle,(char *)x->x_outbuf, x->x_outbuf_wr_index);
if (err != x->x_outbuf_wr_index) if (err != x->x_outbuf_wr_index)
{ {
pd_error(x,"[comport]: Write failed for %d bytes, error is %d",err,errno); //pd_error(x,"[comport]: Write failed for %d bytes, error is %d",err,errno);
logpost(x,PD_DEBUG,"[comport]: Write failed for %d bytes, error is %d",err,errno);
} }
#endif /*_WIN32*/ #endif /*_WIN32*/
x->x_outbuf_wr_index = 0; /* for now we just drop anything that didn't send */ x->x_outbuf_wr_index = 0; /* for now we just drop anything that didn't send */