With the new LIBTIRPC_DEBUG() macros a new-line is appended on each output buffer. So concatenate gss_log_status()'s output into one buffer. Signed-off-by: Steve Dickson <steved@xxxxxxxxxx> --- src/authgss_prot.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/authgss_prot.c b/src/authgss_prot.c index d7480fc..f233c24 100644 --- a/src/authgss_prot.c +++ b/src/authgss_prot.c @@ -312,21 +312,19 @@ gss_log_debug(const char *fmt, ...) void gss_log_status(char *m, OM_uint32 maj_stat, OM_uint32 min_stat) { - OM_uint32 min; - gss_buffer_desc msg; + OM_uint32 min, maj; + gss_buffer_desc maj_msg, min_msg; u_int32_t msg_ctx = 0; - LIBTIRPC_DEBUG(1, ("rpcsec_gss: %s: ", m)); + gss_display_status(&maj, maj_stat, GSS_C_GSS_CODE, GSS_C_NULL_OID, + &msg_ctx, &maj_msg); + gss_display_status(&min, min_stat, GSS_C_MECH_CODE, GSS_C_NULL_OID, + &msg_ctx, &min_msg); - gss_display_status(&min, maj_stat, GSS_C_GSS_CODE, GSS_C_NULL_OID, - &msg_ctx, &msg); - LIBTIRPC_DEBUG(1, ("%s - ", (char *)msg.value)); - gss_release_buffer(&min, &msg); + LIBTIRPC_DEBUG(1, ("%s: %s - %s", m, (char *)maj_msg.value, (char *)min_msg.value)); - gss_display_status(&min, min_stat, GSS_C_MECH_CODE, GSS_C_NULL_OID, - &msg_ctx, &msg); - LIBTIRPC_DEBUG(1, ("%s", (char *)msg.value)); - gss_release_buffer(&min, &msg); + gss_release_buffer(&maj, &maj_msg); + gss_release_buffer(&min, &min_msg); } void -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html