File pacemaker-crmd-log-rc-code-as-extended-information.patch of Package pacemaker.19778

commit ae0916dbfff6f9638a0816c46c33bc711529db26
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Thu Apr 5 12:35:07 2018 -0500

    Log: crmd: log rc code as extended information
    
    trivial, but makes static analysis happy

diff --git a/crmd/pengine.c b/crmd/pengine.c
index 7fc761938..5e86d9c44 100644
--- a/crmd/pengine.c
+++ b/crmd/pengine.c
@@ -1,19 +1,8 @@
-/* 
- * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
- * 
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * 
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+/*
+ * Copyright 2004-2018 Andrew Beekhof <andrew@beekhof.net>
+ *
+ * This source code is licensed under the GNU General Public License version 2
+ * or later (GPLv2+) WITHOUT ANY WARRANTY.
  */
 
 #include <crm_internal.h>
@@ -334,7 +323,7 @@ do_pe_invoke_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void
 
     if (rc != pcmk_ok) {
         crm_err("Could not retrieve the Cluster Information Base: %s "
-                CRM_XS " call=%d", pcmk_strerror(rc), call_id);
+                CRM_XS " rc=%d call=%d", pcmk_strerror(rc), rc, call_id);
         register_fsa_error_adv(C_FSA_INTERNAL, I_ERROR, NULL, NULL, __FUNCTION__);
         return;
 
openSUSE Build Service is sponsored by