Better diagnostics.
[yaz-moved-to-github.git] / client / client.c
index de3740f..f1f3c58 100644 (file)
@@ -4,7 +4,13 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: client.c,v $
- * Revision 1.21  1995-09-29 17:01:47  quinn
+ * Revision 1.23  1995-10-18 16:12:30  quinn
+ * Better diagnostics.
+ *
+ * Revision 1.22  1995/10/11  14:49:12  quinn
+ * Smallish.
+ *
+ * Revision 1.21  1995/09/29  17:01:47  quinn
  * More Windows work
  *
  * Revision 1.20  1995/08/29  14:24:13  quinn
@@ -317,7 +323,9 @@ void display_grs1(Z_GenericRecord *r, int level)
         }
         else if (t->content->which == Z_ElementData_string)
             printf("%s\n", t->content->u.string);
-        else
+        else if (t->content->which == Z_ElementData_numeric)
+           printf("%d\n", *t->content->u.numeric);
+       else
             printf("??????\n");
     }
 }
@@ -997,6 +1005,7 @@ static int client(void)
                 if (!z_APDU(in, &apdu, 0))
                 {
                     odr_perror(in, "Decoding incoming APDU");
+                   fprintf(stderr, "[Near %d]\n", odr_offset(in));
                     fprintf(stderr, "Packet dump:\n---------\n");
                     odr_dumpBER(stderr, netbuffer, res);
                     fprintf(stderr, "---------\n");