diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 20:41:28 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 20:41:28 -0500 |
commit | 937fcddf59817246db59f5be4af23c22e6c82cd5 (patch) | |
tree | 54e623cf9161b6c2152ba68691d3ab3fedbc99a1 /vxi11_server.c | |
parent | d30320dd62ae86da9d1aa8fe61066aa51bc0e102 (diff) |
add hex dump of received data for debugging
Diffstat (limited to 'vxi11_server.c')
-rw-r--r-- | vxi11_server.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vxi11_server.c b/vxi11_server.c index bf57547..186826d 100644 --- a/vxi11_server.c +++ b/vxi11_server.c @@ -205,7 +205,12 @@ device_write_1_svc(Device_WriteParms *argp, struct svc_req *rqstp) { else { touchlink(argp->lid); #ifdef DEBUG - printf("got %s on link %d\n", argp->data.data_val, (int) argp->lid); + int n; + char *str = argp->data.data_val; + for(n=0; str[n] != '\0'; n++) + printf("%02x ",(unsigned char)str[n]); + printf("\n"); + printf("got <<%s>> on link %d.\n", argp->data.data_val, (int) argp->lid); #endif Parser_main(argp->data.data_val, 0, GPIB_and_VXI_start_query_response, NULL); result.size = argp->data.data_len; |