From e0b4bd0a5d34761d221be1d8809ec466e51b6754 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 21 Oct 2003 12:44:42 +0000 Subject: [PATCH] Tweak output format for nicer Init diagnostic messages --- client/client.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/client.c b/client/client.c index 190616c..4c35f19 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.210 2003-10-21 12:35:50 mike Exp $ + * $Id: client.c,v 1.211 2003-10-21 12:44:42 mike Exp $ */ #include @@ -478,10 +478,11 @@ static void render_diag(Z_DiagnosticFormat *diag) { case Z_DiagnosticFormat_s_defaultDiagRec: { Z_DefaultDiagFormat *dd = ds->u.defaultDiagRec; /* ### should check `dd->diagnosticSetId' */ - printf("code=%d", *dd->condition); + printf("code=%d (%s)", *dd->condition, + diagbib1_str(*dd->condition)); /* Both types of addinfo are the same, so use type-pun */ if (dd->u.v2Addinfo != 0) - printf(", addinfo='%s'", dd->u.v2Addinfo); + printf(",\n\taddinfo='%s'", dd->u.v2Addinfo); break; } case Z_DiagnosticFormat_s_explicitDiagnostic: -- 1.7.10.4