removes warnings.
Index: services/evt.c
===================================================================
--- services/evt.c	(revision 1849)
+++ services/evt.c	(working copy)
@@ -49,6 +49,8 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#include <stdint.h>
+#include <inttypes.h>
 #include <corosync/corotypes.h>
 #include <corosync/coroipc_types.h>
 #include <corosync/coroipcc.h>
@@ -2919,7 +2921,7 @@
 {
 	log_printf(RECOVERY_DEBUG, "Evt conf change %d\n",
 			configuration_type);
-	log_printf(RECOVERY_DEBUG, "m %d, j %d, l %d\n",
+	log_printf(RECOVERY_DEBUG, "m %"PRIu64", j %"PRIu64" l %"PRIu64,
 					member_list_entries,
 					joined_list_entries,
 					left_list_entries);
Index: services/ckpt.c
===================================================================
--- services/ckpt.c	(revision 1849)
+++ services/ckpt.c	(working copy)
@@ -4098,11 +4098,11 @@
 			log_printf (LOGSYS_LEVEL_NOTICE, "   Section %s (%d)",
 				section->section_descriptor.section_id.id,
 				section->section_descriptor.section_id.id_len);
-			log_printf (LOGSYS_LEVEL_NOTICE, "      size:     %llu",
+			log_printf (LOGSYS_LEVEL_NOTICE, "      size:     %"PRIu64,
 				section->section_descriptor.section_size);
 			log_printf (LOGSYS_LEVEL_NOTICE, "      state:    %u",
 				section->section_descriptor.section_state);
-			log_printf (LOGSYS_LEVEL_NOTICE, "      exp time: %llu",
+			log_printf (LOGSYS_LEVEL_NOTICE, "      exp time: %"PRIu64,
 				section->section_descriptor.expiration_time);
 		}
 	}
Index: services/amf.c
===================================================================
--- services/amf.c	(revision 1849)
+++ services/amf.c	(working copy)
@@ -1929,7 +1929,7 @@
 	struct amf_comp *comp;
 	SaAisErrorT error = SA_AIS_OK;
 
-	TRACE2("PmStart msg: '%s', %llu %d %d %d",
+	TRACE2("PmStart msg: '%s', %"PRIu64" %d %d %d",
 				req_lib->compName.value,
 				req_lib->processId,
 				req_lib->descendentsTreeDepth,
@@ -1968,7 +1968,7 @@
 	struct amf_comp *comp;
 	SaAisErrorT error = SA_AIS_OK;
 
-	TRACE2 ("PmStop msg: '%s', %llu %d %d",
+	TRACE2 ("PmStop msg: '%s', %"PRIu64" %d %d",
 			req_lib->compName.value,
 			req_lib->processId,
 			req_lib->stopQualifier,
Index: services/amfcomp.c
===================================================================
--- services/amfcomp.c	(revision 1849)
+++ services/amfcomp.c	(working copy)
@@ -1494,7 +1494,7 @@
 			free(pm);
 			continue;
 		}
-		sprintf(f,"/proc/%llu/stat", pm->pid);
+		sprintf(f,"/proc/%"PRIu64"/stat", pm->pid);
 		if (access( f, R_OK) != 0) {
 			if ((comp->su->restart_control_state != SU_RC_RESTART_SU_DEACTIVATING) &&
 				(comp->su->restart_control_state != SU_RC_RESTART_SU_TERMINATING) &&
@@ -1558,7 +1558,7 @@
 		if (p == NULL)
 			continue;
 
-		res = fscanf(p, "%llu %*s %*c %llu", &p_id, &parent);
+		res = fscanf(p, "%"PRIu64" %*s %*c %"PRIu64, &p_id, &parent);
 
 		if ((res == 2) && (parent == ppid)) {
 
@@ -1568,7 +1568,7 @@
 				return;
 			}
 
-			TRACE2 ("add child (pid=%llu) for comp pid=%llu (%s)\n", p_id, ppid, comp->name.value);
+			TRACE2 ("add child (pid=%"PRIu64") for comp pid=%"PRIu64" (%s)\n", p_id, ppid, comp->name.value);
 
 			pm->pid = p_id;
 			pm->errors = pmErrors;
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to