Fixed seq nr display
authorClaudius Zingerli <gitmail@zeuz.ch>
Fri, 12 Feb 2016 23:56:58 +0000 (00:56 +0100)
committerClaudius Zingerli <gitmail@zeuz.ch>
Fri, 29 Apr 2016 15:36:33 +0000 (17:36 +0200)
src/chrony.c

index 1a17cda..f170f67 100644 (file)
@@ -522,7 +522,7 @@ static int chrony_query(const int p_command, tChrony_Request *p_req, tChrony_Res
                p_req->header.f_cmd_try = 0;
                p_req->header.f_seq     = seq_nr;
                
-               DEBUG(PLUGIN_NAME ": Sending request (.cmd = %d, .seq = %d)",p_command,seq_nr);
+               DEBUG(PLUGIN_NAME ": Sending request (.cmd = %d, .seq = %d)",p_command, seq_nr);
                if (chrony_send_request(p_req,req_size) != 0)
                {
                        break;
@@ -534,8 +534,8 @@ static int chrony_query(const int p_command, tChrony_Request *p_req, tChrony_Res
                        break;
                }
                DEBUG(PLUGIN_NAME ": Received response: .version = %u, .type = %u, .cmd = %u, .reply = %u, .status = %u, .seq = %u",
-                               p_resp->header.f_version,p_resp->header.f_type,ntohs(p_resp->header.f_cmd),
-                               ntohs(p_resp->header.f_reply),ntohs(p_resp->header.f_status),ntohl(p_resp->header.f_seq));
+                               p_resp->header.f_version, p_resp->header.f_type, ntohs(p_resp->header.f_cmd),
+                               ntohs(p_resp->header.f_reply), ntohs(p_resp->header.f_status), p_resp->header.f_seq);
 
                if (p_resp->header.f_version != p_req->header.f_version)
                {