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 2F4C970202; Wed, 24 Feb 2021 18:39:03 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2F4C970202 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1614181143; bh=5OWpnfPawMhetcTyhCB3aVTCwZoP0fmWPHlWHiieIas=; 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=fD9YS/TPnKWlMivd0hMST2dqWYyr7xwE43hLV6/NbfOd9HKQXiGKArGQ1zlWt3tM8 Ckkc/kJ/Nvt4rJlx4+pk3flED3gCrQEhxiD5385W+7oGTxAad9Hu8nQ8xHczmOd2cF txLcNOnh12jxyaavIrQN+DMx7hu42aBkhWudGwAA= Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 C8CD26C7D2 for ; Wed, 24 Feb 2021 18:37:30 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C8CD26C7D2 Received: by mail-lf1-f42.google.com with SMTP id v30so3676413lfq.6 for ; Wed, 24 Feb 2021 07:37:30 -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=H5kiEmNMrqKMofJluNAUVqMwTUcU+0/K9Bsc9JPuMPg=; b=LnFXxIiJJH8mnSFRelGKqixAcVhS/bnm7UzL9FShhEBX+2m+sCscO/p+cuYVGbYMPn aQE9427m181qcPC0uIZZA6f7meBioo1pCKT1TAifbltVEZJlNKQQ55JwP8d2K5Eu0qXQ AheigMb/axCLD7QX8vhx4nMVXl2BVQBhM6fKyjT9p2YfJDOhNC+yYHRmn55YBbpkGtlU EmOzXaYDqlCFeQNk8lIPU37b8IxUg53/VgnPwneZmIN9pdhH6zsYrhGzPmicYz/ehKdu XEPGOnSDel4jAo55Yfx4oOuAlIHp/5D+jcxb+G5hKvChAIuwdlim8vDOzTtkD8uzJYAp 7EmQ== X-Gm-Message-State: AOAM5317BDXiO1XsHEPW2YCop4ZK8etbsEibtD7jDaIge16c/Z/b6V1a z7kyFxKm0KAu5S02zJg2M2zDXTb8PmSU7g== X-Google-Smtp-Source: ABdhPJxcaXHEBwc6QMnOXqcDxZoYehEyZKy5s80eaUWwwRpfjjGZnpSkLHqkhj5Kgc02iilDjEMiAQ== X-Received: by 2002:ac2:4106:: with SMTP id b6mr887489lfi.420.1614181049699; Wed, 24 Feb 2021 07:37:29 -0800 (PST) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id z8sm546560lfr.124.2021.02.24.07.37.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 07:37:28 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id D5DED5601BE; Wed, 24 Feb 2021 18:36:28 +0300 (MSK) To: tml Date: Wed, 24 Feb 2021 18:36:21 +0300 Message-Id: <20210224153626.121506-6-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 05/10] xlog: 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" The string length specificator expects length as integer value. Part-of #5846 Signed-off-by: Cyrill Gorcunov --- src/box/xlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/box/xlog.c b/src/box/xlog.c index 974f460be..40c07abf0 100644 --- a/src/box/xlog.c +++ b/src/box/xlog.c @@ -314,8 +314,8 @@ xlog_meta_parse(struct xlog_meta *meta, const char **data, /* * Unknown key */ - say_warn("Unknown meta item: `%.*s'", key_end - key, - key); + say_warn("Unknown meta item: `%.*s'", + (int)(key_end - key), key); } } *data = end + 1; /* skip the last trailing \n of \n\n sequence */ -- 2.29.2