Add a couple of debug logs

From patch by Thomas Shaddack <shaddack@shaddack.mauriceward.com>
https://www.improwis.com/projects/sw_SerialOverIP_RFC2217/
This commit is contained in:
Kim Woelders
2021-01-14 07:28:31 +01:00
parent eccd32fdfb
commit 33de2e875c
+2
View File
@@ -622,6 +622,7 @@ ttynvt_write(fuse_req_t req, const char *data, size_t size, off_t off,
} }
else if (res != (int)size) else if (res != (int)size)
{ {
DBG("%s: caution: tty->pollout set to 0\n", __func__);
tty->pollout = 0; tty->pollout = 0;
} }
@@ -983,6 +984,7 @@ ttynvt_ioctl(fuse_req_t req, int cmd, void *arg,
fuse_reply_ioctl(req, 0, &val, sizeof(int)); fuse_reply_ioctl(req, 0, &val, sizeof(int));
break; break;
default: default:
DBG("ERROR: Unsupported IOCTL\n");
fuse_reply_err(req, ENOSYS); fuse_reply_err(req, ENOSYS);
break; break;