From 937fcddf59817246db59f5be4af23c22e6c82cd5 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 20:41:28 -0500 Subject: add hex dump of received data for debugging --- vxi11_server.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- cgit