@@ -1137,7 +1137,7 @@ MtmCheckClusterLock()
11371137}else {
11381138/* All lockers are synchronized their logs */
11391139/* Remove lock and mark them as receovered */
1140- elog (WARNING ,"Complete recovery of %d nodes (node mask %lx)" ,Mtm -> nLockers ,Mtm -> nodeLockerMask );
1140+ elog (WARNING ,"Complete recovery of %d nodes (node mask %lx)" ,Mtm -> nLockers ,( long ) Mtm -> nodeLockerMask );
11411141Assert (Mtm -> walSenderLockerMask == 0 );
11421142Assert ((Mtm -> nodeLockerMask & Mtm -> disabledNodeMask )== Mtm -> nodeLockerMask );
11431143Mtm -> disabledNodeMask &= ~Mtm -> nodeLockerMask ;
@@ -1197,7 +1197,7 @@ bool MtmRefreshClusterStatus(bool nowait)
11971197
11981198clique = MtmFindMaxClique (matrix ,MtmNodes ,& clique_size );
11991199if (clique_size >=MtmNodes /2 + 1 ) {/* have quorum */
1200- elog (WARNING ,"Find clique %lx, disabledNodeMask %lx" ,clique ,Mtm -> disabledNodeMask );
1200+ elog (WARNING ,"Find clique %lx, disabledNodeMask %lx" ,( long ) clique , ( long ) Mtm -> disabledNodeMask );
12011201MtmLock (LW_EXCLUSIVE );
12021202mask = ~clique & (((nodemask_t )1 <<MtmNodes )- 1 )& ~Mtm -> disabledNodeMask ;/* new disabled nodes mask */
12031203for (i = 0 ;mask != 0 ;i ++ ,mask >>=1 ) {
@@ -1225,7 +1225,7 @@ bool MtmRefreshClusterStatus(bool nowait)
12251225MtmSwitchClusterMode (MTM_RECOVERY );
12261226}
12271227}else {
1228- elog (WARNING ,"Clique %lx has no quorum" ,clique );
1228+ elog (WARNING ,"Clique %lx has no quorum" ,( long ) clique );
12291229MtmSwitchClusterMode (MTM_IN_MINORITY );
12301230}
12311231return true;
@@ -1235,12 +1235,12 @@ void MtmCheckQuorum(void)
12351235{
12361236if (Mtm -> nNodes < MtmNodes /2 + 1 ) {
12371237if (Mtm -> status == MTM_ONLINE ) {/* out of quorum */
1238- elog (WARNING ,"Node is in minority: disabled mask %lx" ,Mtm -> disabledNodeMask );
1238+ elog (WARNING ,"Node is in minority: disabled mask %lx" ,( long ) Mtm -> disabledNodeMask );
12391239MtmSwitchClusterMode (MTM_IN_MINORITY );
12401240}
12411241}else {
12421242if (Mtm -> status == MTM_IN_MINORITY ) {
1243- elog (WARNING ,"Node is in majority: dissbled mask %lx" ,Mtm -> disabledNodeMask );
1243+ elog (WARNING ,"Node is in majority: dissbled mask %lx" ,( long ) Mtm -> disabledNodeMask );
12441244MtmSwitchClusterMode (MTM_ONLINE );
12451245}
12461246}
@@ -2229,7 +2229,7 @@ MtmNoticeReceiver(void *i, const PGresult *res)
22292229/* Strip "NOTICE: " from beginning and "\n" from end of error string */
22302230strncpy (stripped_notice ,notice + 9 ,len - 1 - 9 );
22312231
2232- elog (NOTICE ,stripped_notice );
2232+ elog (NOTICE ,"%s" , stripped_notice );
22332233pfree (stripped_notice );
22342234}
22352235
@@ -2273,7 +2273,7 @@ static void MtmBroadcastUtilityStmt(char const* sql, bool ignoreError)
22732273if (MtmGUCBufferAllocated && !MtmRunUtilityStmt (conns [i ],MtmGUCBuffer -> data ,& utility_errmsg )&& !ignoreError )
22742274{
22752275errorMsg = "Failed to set GUC variables at node %d" ;
2276- elog (ERROR ,utility_errmsg );
2276+ elog (NOTICE , "%s" ,utility_errmsg );
22772277failedNode = i ;
22782278break ;
22792279}
@@ -2289,7 +2289,7 @@ static void MtmBroadcastUtilityStmt(char const* sql, bool ignoreError)
22892289errorMsg = utility_errmsg ;
22902290else
22912291{
2292- elog (ERROR ,utility_errmsg );
2292+ elog (ERROR ,"%s" , utility_errmsg );
22932293errorMsg = "Failed to run command at node %d" ;
22942294}
22952295