From a2b8735fe58513b52fea2dc42c6a4b201c5b1be4 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 13 Aug 1996 23:14:59 +0000 Subject: [PATCH] check status in call back --- src/util/ca_test.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/util/ca_test.c b/src/util/ca_test.c index 012993546..6a05b96ff 100644 --- a/src/util/ca_test.c +++ b/src/util/ca_test.c @@ -224,11 +224,16 @@ LOCAL int cagft(char *pname) */ LOCAL void printit(struct event_handler_args args) { - - print_returned( - args.type, - args.dbr, - args.count); + if (args.status == ECA_NORMAL) { + print_returned( + args.type, + args.dbr, + args.count); + } + else { + printf ("%s: err resp to get cb was \"%s\"\n", + __FILE__, ca_message(args.status)); + } outstanding--; }