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 DE84670202; Wed, 24 Feb 2021 18:40:02 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DE84670202 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1614181202; bh=C0N4OhNTbnmfNw8VZeOemWqtALD6PsPsp3kEOUExNcA=; 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=XqPANWmDOYMWwb9SivLhnvTr2aoEJxMcbYNCqt3hUzwcdB6F+udhTu1ADEcjBZOg7 IpcaOaVYdiVbYaTYJou+CnV7y8XPAp0ZJomA6fcwoliGm7SwHEEajlgHIhAlkBZZqH ZDyW3p548TX/wfFrBmUWDeBidXncU51YBD2ijUvQ= 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 2C4E57030D for ; Wed, 24 Feb 2021 18:37:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2C4E57030D Received: by mail-lj1-f176.google.com with SMTP id c8so2854610ljd.12 for ; Wed, 24 Feb 2021 07:37:54 -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=LRg5iaD3KPa1TIzAz3l8D9NsmqULy09vM2IO39JEhH8=; b=jgJkO53ZZT3PStQJZ9RmsfOQSzSAbQq8ZYDUUrsgVOcOVvUijcm/dJOl7v6vvlzeR+ JGa5hgWCvPCZMh9Y5E3dlBAXXmCBTgKL7eLjnp0dfAFQAM5LYqzXWEKOrKaPUR6S+Txx L8R4iHUXzjleBSnTKVHfwGKTVtBRkDd+1emq7EQsmdu2kmjapjui2oNadG7ahAUJF2sO OxT+2XRG6zHf3Au9e2apwYiyuvX8FzzDyeIMJON6RkeYKyanlgxmpfkzn/DmDXqwtXyd j1Qt1BgRC2NFvUWFiSAuGvwSGXmW7ZD4kPgU13xz4+qPgzGAMQ/Dud1jknSlqZAPGPUA Ue5g== X-Gm-Message-State: AOAM531IOWHMFdsp6moFp9uLuWBDVGste1qijs1XQASEQ7ySVSGqRMrM gi+0Ifgy1Mc39nVjMC0agiEXcUE6bo5dXQ== X-Google-Smtp-Source: ABdhPJz/qrA6I5QgDoEudbjHbypwwTkmCUCVmpIkHXD8x6cJn1dABi3XYMz/RtC0XrAHrtI28U/ttA== X-Received: by 2002:a05:651c:11c7:: with SMTP id z7mr19921465ljo.494.1614181073213; Wed, 24 Feb 2021 07:37:53 -0800 (PST) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id r25sm544284lfn.213.2021.02.24.07.37.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 07:37:52 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id DAC6F5601D2; Wed, 24 Feb 2021 18:36:28 +0300 (MSK) To: tml Date: Wed, 24 Feb 2021 18:36:23 +0300 Message-Id: <20210224153626.121506-8-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 07/10] txn: fix say_x format 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 conversion for 64 bit number. Part-of #5846 Signed-off-by: Cyrill Gorcunov --- src/box/txn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/box/txn.c b/src/box/txn.c index a5edbfc60..c9c0579b8 100644 --- a/src/box/txn.c +++ b/src/box/txn.c @@ -585,7 +585,8 @@ txn_on_journal_write(struct journal_entry *entry) int n_rows = txn->n_new_rows + txn->n_applier_rows; say_warn_ratelimited("too long WAL write: %d rows at LSN %lld: " "%.3f sec", n_rows, - txn->signature - n_rows + 1, delta); + (long long)(txn->signature - n_rows + 1), + delta); } if (txn_has_flag(txn, TXN_HAS_TRIGGERS)) txn_run_wal_write_triggers(txn); -- 2.29.2