From 124f9aaa21d83a9f67b9f9d4da2e322f29578ca0 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Fri, 16 Aug 2013 15:01:04 -0700
Subject: [PATCH] Slightly better debugging

---
 src/common/slurm_protocol_util.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/common/slurm_protocol_util.c b/src/common/slurm_protocol_util.c
index 6a93bba1876..92a42cb76e4 100644
--- a/src/common/slurm_protocol_util.c
+++ b/src/common/slurm_protocol_util.c
@@ -83,7 +83,8 @@ int check_header_version(header_t * header)
 		if ((header->version != SLURM_PROTOCOL_VERSION)     &&
 		    (header->version != SLURM_2_5_PROTOCOL_VERSION) &&
 		    (header->version != SLURM_2_4_PROTOCOL_VERSION)) {
-			debug("unsupported RPC version %hu", header->version);
+			debug("unsupported RPC version %hu msg type %u",
+			      header->version, header->msg_type);
 			slurm_seterrno_ret(SLURM_PROTOCOL_VERSION_ERROR);
 		}
 	} else if (header->version != check_version) {
@@ -103,8 +104,8 @@ int check_header_version(header_t * header)
 			if ((header->version != SLURM_PROTOCOL_VERSION)     &&
 			    (header->version != SLURM_2_5_PROTOCOL_VERSION) &&
 			    (header->version != SLURM_2_4_PROTOCOL_VERSION)) {
-				debug("unsupported RPC version %hu",
-				      header->version);
+				debug("Unsupported RPC version %hu msg type %u",
+				      header->version, header->msg_type);
 				slurm_seterrno_ret(SLURM_PROTOCOL_VERSION_ERROR);
 			}
 			break;
-- 
GitLab