From 33de2e875c1561095612f86efd3c7f037add84e5 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Thu, 14 Jan 2021 07:28:31 +0100 Subject: [PATCH] Add a couple of debug logs From patch by Thomas Shaddack https://www.improwis.com/projects/sw_SerialOverIP_RFC2217/ --- src/ttynvt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ttynvt.c b/src/ttynvt.c index eea602f..f1bea9a 100644 --- a/src/ttynvt.c +++ b/src/ttynvt.c @@ -622,6 +622,7 @@ ttynvt_write(fuse_req_t req, const char *data, size_t size, off_t off, } else if (res != (int)size) { + DBG("%s: caution: tty->pollout set to 0\n", __func__); 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)); break; default: + DBG("ERROR: Unsupported IOCTL\n"); fuse_reply_err(req, ENOSYS); break;