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 661456EC57; Tue, 4 May 2021 19:03:11 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 661456EC57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1620144191; bh=WlboU1Feje4dKOmmfkxzgrrUb9wggEm+2VhFZG43MZw=; 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=X3qKSqpLHlYezHaN1DRtqkkFMH94nKSIJaTzN7Sd/EoqoRaLwcjWlVRG86gfYaodv 3sHFYUg2H5JsqqmWplAPK0Na48FFMkd+6VAsLwBtvJBXMcRAeX5MHjcmSVGOVqS29e RLHhueYr+tBj/aXHawY3V+ykUZ//uaeoX/IBPgC4= Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 B7B986EC70 for ; Tue, 4 May 2021 19:01:45 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B7B986EC70 Received: by mail-lf1-f49.google.com with SMTP id c11so14025002lfi.9 for ; Tue, 04 May 2021 09:01:45 -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=0uLA42C9la4HfpdYPbKzNL+u/3isNSEarEkzOwes0hc=; b=m8WPVi2rWjuKj9KC1MisLM5l2MiUD9ppbpyS76zVR2nNdBZXA/ksCb1beKhB8kEPgZ JICHuvmEf9HFahGH9T7oO81ym2YYRHJSts28tkjmzYwshM5Blc7H7ydVUlCbfMteg852 7T4ODTWgh2xGqqkTGjebf7xkVVRptodUes9P6BhdqOn/08IV+30iM7euik9sb8oMqk9H yRT319qcvukxThz6EFmk9rzth6grwbFFgFBNF91iUAWloeJj/ApX/2gg/beDZCqQny3X Nx8FUuCZzV+yHK+eJuTuh/cQqxYO0isyR21IMlHixj/0UZljEinGm5X7FeY/zT+X66L1 VzPg== X-Gm-Message-State: AOAM532E534KjcE8xH03qSv8NNf7EGSGpd2OLz2xavoiZJXUVxv4S17y VXFt5niYsLVLqE16S8N2TtMxoGC7HJ4= X-Google-Smtp-Source: ABdhPJyOmHCR8j/WWWCASAko7l3E3n2sjMu3bb1kmOjxH7pixGMp8qZuSw6/pevAxysSTMXsmSfOWg== X-Received: by 2002:ac2:495a:: with SMTP id o26mr16957762lfi.419.1620144103818; Tue, 04 May 2021 09:01:43 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id e9sm1710849ljj.52.2021.05.04.09.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 09:01:42 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 08C535601D9; Tue, 4 May 2021 18:58:21 +0300 (MSK) To: tml Date: Tue, 4 May 2021 18:58:16 +0300 Message-Id: <20210504155819.290874-8-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 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 6d861338f..1d42c9113 100644 --- a/src/box/txn.c +++ b/src/box/txn.c @@ -551,7 +551,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.30.2