summaryrefslogtreecommitdiff
path: root/libvxi11client/libvxi11client.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvxi11client/libvxi11client.c')
-rw-r--r--libvxi11client/libvxi11client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libvxi11client/libvxi11client.c b/libvxi11client/libvxi11client.c
index e33cb24..fb37dbc 100644
--- a/libvxi11client/libvxi11client.c
+++ b/libvxi11client/libvxi11client.c
@@ -211,8 +211,12 @@ int vxi11_read(char* buffer, unsigned int bufferlen, bool waitlock, bool termchr
termchrset ? termchr : 0 };
Device_ReadResp* resp = device_read_1(&params, clnt);
- if (resp != NULL && resp->error == 0)
+ if (resp != NULL && resp->error == 0) {
+#ifdef DEBUG
+ printf("Got \"%s\" from server\n", resp->data.data_val);
+#endif
return resp->data.data_len;
+ }
else if (resp == NULL)
return 0;
else