From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 35B036EC6E; Tue, 4 May 2021 19:05:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 35B036EC6E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1620144342; bh=JjBguv4Km5uM2Wd7ySYFNUW+bm7OgnUkeZh2dPrK7ek=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=qlqWtYydea2N6/LZeZLLg6yG2oHr5npCcssLTufpUf20DacXx2nGrGtGjEey3ckc+ IrQcgLWu74UAA3adQ5gO+okysElMiFzna5xSr/S0SUOFyqLYIWLt3r02zV4ZidHqAv YQcaHx1UC1EktTgUw7XXebOPWgIRoRMPiz//pFYc= Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D4DEB6EC6E for ; Tue, 4 May 2021 19:02:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D4DEB6EC6E Received: by mail-lj1-f174.google.com with SMTP id w15so10451093ljo.10 for ; Tue, 04 May 2021 09:02:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fNi5V4SBM/rfN1Xjh/Ips75a+VgU3qCZsd4MVkgweSY=; b=LTTWevJvWDEkBCHDM4Funug3ugesva0AgPMisD6bavjMySzi1vHcoJw6ZyIWneOngt IWZ1wgcYIZq3QOWiRi02jSZqxbczfSy7iGifALOehrqnoRXCZS5smoMM9kLTC1ENrI9k JeBZseqgZsNBrjl2MQg/fhFcYeu0HXvLeQhnrJ1JmkuGwhbT2FPRnKFmcPK2HoxKr0Hu ZfVz79tf9p6K1w+QM5cSoG3bsVy5/ehawV9qnh/USIZZhNfqGqTicD0YXZ9uwsOvSxd0 hApGyAx82o4Rvk74ja4i+FBIK8BD25fr31tWKIWzDAkVyRI4WPtxtMo8mOy6CQ0Muucr 1jrQ== X-Gm-Message-State: AOAM5314k8SnSmZ4zgCPwCXzDPHUVce3Xt93xskVs+pwq08bGCdojK+6 BfTgEAOOGAoxt6iLafXSlLOlUCKAXjI= X-Google-Smtp-Source: ABdhPJzt39QU2aeQc8u/G5p1hIV+Rig4M64bsLLQS1RoSThok5Gq2VWNc0jKVroeBTBhxxMOANN0ZQ== X-Received: by 2002:a2e:a585:: with SMTP id m5mr16324839ljp.223.1620144163647; Tue, 04 May 2021 09:02:43 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id f4sm1087427ljn.38.2021.05.04.09.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 09:02:42 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id F24F856019F; Tue, 4 May 2021 18:58:20 +0300 (MSK) To: tml Date: Tue, 4 May 2021 18:58:12 +0300 Message-Id: <20210504155819.290874-4-gorcunov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210504155819.290874-1-gorcunov@gmail.com> References: <20210504155819.290874-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v3 03/10] raft: fix say_x arguments X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Use explicit "%llu" for uint64_t type. Part-of #5846 Signed-off-by: Cyrill Gorcunov --- src/lib/raft/raft.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/raft/raft.c b/src/lib/raft/raft.c index 46a30149f..247c7a71a 100644 --- a/src/lib/raft/raft.c +++ b/src/lib/raft/raft.c @@ -322,7 +322,8 @@ raft_process_msg(struct raft *raft, const struct raft_msg *req, uint32_t source) /* Outdated request. */ if (req->term < raft->volatile_term) { say_info("RAFT: the message is ignored due to outdated term - " - "current term is %u", raft->volatile_term); + "current term is %llu", + (long long)raft->volatile_term); return 0; } @@ -653,7 +654,7 @@ raft_sm_become_candidate(struct raft *raft) static void raft_sm_schedule_new_term(struct raft *raft, uint64_t new_term) { - say_info("RAFT: bump term to %llu, follow", new_term); + say_info("RAFT: bump term to %llu, follow", (long long)new_term); assert(new_term > raft->volatile_term); assert(raft->volatile_term >= raft->term); raft->volatile_term = new_term; -- 2.30.2