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 A9D5171828; Wed, 24 Feb 2021 18:38:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A9D5171828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1614181081; bh=xCfhrAVWAeJ+FQwyi8IggngNQzRKqh7NEdAcw4+QDPM=; 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=kmzwORz7CGPw+rGj0oaysaXcn6fbY/P6EJFEJ9n/Xw40yfdoOEVjLrA33X3OvP65b 3XP8CbbSQE0JzgAPYLEQVTWQsLYIpKgo4EMtUOg9UbmteRpQGqI4J0Bdn7iTogucjJ SonpTdXaxyJqOX8i+vQAt6VJ2Gt9a0zyIDuqbO14= Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 503D071828 for ; Wed, 24 Feb 2021 18:37:06 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 503D071828 Received: by mail-lj1-f176.google.com with SMTP id r23so2900987ljh.1 for ; Wed, 24 Feb 2021 07:37:06 -0800 (PST) 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=YEZEBbCP50pywWoZdGWQtR5/Ztz3vc1q7XDIw0Y0yZU=; b=Ka0CuC5SEgdL1fLsClqKE+Sy8TJwwX0gyzT6u6EIisUy5TSHGBAndDpbpve0ZCDXei fXzIWCm2Jaz3ROqhYGaHEzPgdzx8K1z9v/i+gbUSZHCoamQubaXaju58Z31WMuCAQp2i JAxULHWu9U1znZ6c+/BRCdEmr8RkW5zT4zHHxTyLh4Fxy4stynLKJ/Vqxgv6lo13NEUJ 4VFmq2FXd9Sw3PKvCxi7ZUdpciWXPZzSMl73jn04TqHGX/LmzmI/DUTShQbdPDwGBDcE MMN34l6daBeKPCFvh4o+Aqn5KTocuWI5X2L0JTOjvoRR/CQKxweqK94MBY72S7P01ZCb KYmA== X-Gm-Message-State: AOAM53220nC14z0xpLvazaMie7c9En1DVkId3D1kOaOeiZ9+duvheAa0 ZgQDz9sBM0GkkFukwOpoL3tMkbUU76V4og== X-Google-Smtp-Source: ABdhPJyUp1Wn/DWMM0dGF+P59Lv35mftcPh6HjB30A+PG5vf3cq0nwS0O/SYLEQEx4sM5ln73+whzA== X-Received: by 2002:a05:651c:1355:: with SMTP id j21mr19815816ljb.165.1614181025220; Wed, 24 Feb 2021 07:37:05 -0800 (PST) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id m13sm553060lfr.226.2021.02.24.07.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 07:37:04 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id D0A88560162; Wed, 24 Feb 2021 18:36:28 +0300 (MSK) To: tml Date: Wed, 24 Feb 2021 18:36:19 +0300 Message-Id: <20210224153626.121506-4-gorcunov@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210224153626.121506-1-gorcunov@gmail.com> References: <20210222182030.76232-1-gorcunov@gmail.com> <20210224153626.121506-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 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 "%lld" for int64_t type. 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 4ea4fc3f8..261ff072b 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.29.2