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 2CF3F6EC57; Tue, 4 May 2021 19:02:41 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2CF3F6EC57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1620144161; bh=/Zz5bEttddsU5eD0AKRShURkt1zmqbRv3Lc/AXmZ8FU=; 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=I16LUBc1uSPURb/zUpfXIVmuWHaoeI/duG5gBc5yghjYPGkGGP8uzPusdGLe77rIv sNNNC3kWUPUM3RG+2N7ByLgphI7z+yRjKt1TL7s44A3v/wKZXcO0iZ94a5bixPSK/9 nI2ThW+4k2/qVZWRT/znw1tICc11wvcftHIDOXPc= Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 09AE56EC57 for ; Tue, 4 May 2021 19:01:32 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 09AE56EC57 Received: by mail-lj1-f182.google.com with SMTP id o16so11831835ljp.3 for ; Tue, 04 May 2021 09:01:32 -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=4Gy7nQR7TqaxSfvRcXZacCK4CGH4zyobZ89C1v2lADE=; b=cTEt0z3b4AloXJ3ySmmJmoipY9i4iDoIDmJ9YKWOrCA/rHRmnWBYMIDpuFDCpqjRhh U1/9JhhsqgcaXvR3i903BPnzsoUCDqBLJzYaHr9P9hBWEQOAOWFEg9zsd+oGOlVzDfnM nJrsIQOU39ydj6CZWM/kIYTdK4IHTMo/LSBzrNm3C0fx3t5z/dfQmZjWVFg0G79Kue+u va5J9SW58pSlZWbmeClNpCs8X2PAf2e1jRTl3bJtXefQJDIL88iwG2I6aQAQdW6l3NmT npQPF3PVeVWSJiVccfjss8iQGSP8mJH7hCV5XhiQ8cJoonpMSgYKHs+EbZmc8LMJLqls y2JQ== X-Gm-Message-State: AOAM53272loNsykkblmBEv5bGPBnWzApIOCNbJ9NHJdJ3RH7hIpkLxb1 mTxLtit64ei3kmeXboj+VhA+HlTQr3Q= X-Google-Smtp-Source: ABdhPJz1n5foIgzUuIcxm7VZlOj6KosFQCKdmKU+nRVHjtP2/5iDMr0kKe59n5qmEGVrqCsO4X0XNg== X-Received: by 2002:a2e:154e:: with SMTP id 14mr18115629ljv.217.1620144091041; Tue, 04 May 2021 09:01:31 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id b15sm308230lff.70.2021.05.04.09.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 09:01:30 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 0399F5601CE; Tue, 4 May 2021 18:58:21 +0300 (MSK) To: tml Date: Tue, 4 May 2021 18:58:14 +0300 Message-Id: <20210504155819.290874-6-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 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 an integer value - Use matching quoting for key print out 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 d9e1117e1..7abbb90c5 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.30.2