diff options
author | daniel <danieruru@gmail.com> | 2013-01-11 18:24:43 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-11 18:24:43 +0900 |
commit | 7d4fa5278ace3dd96dda1bf4da75d617fd3e2795 (patch) | |
tree | da903274305c49df85c7ac8f8d6cbf3385a6dfb9 /libvxi11client/libvxi11client.c | |
parent | 2287a7ca37de5dadf9eda790e3afa96262cb9e76 (diff) |
add more tests and a top level for perl wrapping
Diffstat (limited to 'libvxi11client/libvxi11client.c')
-rw-r--r-- | libvxi11client/libvxi11client.c | 6 |
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(¶ms, 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 |