From ab7b859d8a118b4418f5706a09f0b3e420f03d37 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 8 Apr 2009 07:57:36 +0000 Subject: [PATCH] sync.c: avoid printf format warning * exec/sync.c (sync_deliver_fn): cast to unsigned long int, use %lu git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2034 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/sync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/sync.c b/exec/sync.c index a7d7f6ba..6521c84e 100644 --- a/exec/sync.c +++ b/exec/sync.c @@ -336,7 +336,8 @@ static void sync_deliver_fn ( unsigned int barrier_completed; int i; -log_printf (LOG_LEVEL_DEBUG, "confchg entries %d\n", barrier_data_confchg_entries); + log_printf (LOG_LEVEL_DEBUG, "confchg entries %lu\n", + (unsigned long int) barrier_data_confchg_entries); if (endian_conversion_required) { sync_endian_convert (req_exec_sync_barrier_start); }