From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D75F6A04FA; Thu, 6 Feb 2020 07:45:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1A1C21C07D; Thu, 6 Feb 2020 07:44:45 +0100 (CET) Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by dpdk.org (Postfix) with ESMTP id 84B541BFFB for ; Thu, 6 Feb 2020 07:44:41 +0100 (CET) Received: by mail-lf1-f65.google.com with SMTP id v201so3257265lfa.11 for ; Wed, 05 Feb 2020 22:44:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ex7yw1lQczP0ITUnFepv3CVHMb3h+CZosEwIOZGlzcM=; b=rcyhv89WWWZGiEkyG5BrbkT+CcrqFWLYpT9aZDVEbuTgQctHRGLWJ9rofblgAFjLeN MGctUOb5YXOGWsoYit5UaY0b+NZfprAnXK8t/u6UeHg2G3d+NgumKsWl9Ap+h7vsifrn gX++P8rUc+8PwMQTeohZRcTk66ZgSmxf321gvPkBdbrWaFl3aHDial8tQoHHwdYv51vb DJ/pBy+ZoAuHBh3G73FHY9NbHhHqZEFd9xJPslPRB/cxwQn/QgKu9f1+Y82E2N8iQ4+A pYGsUKxubF3zGWkXXEuclveOO7okGsjfdEKeGM55UTe0JfDnbzOBdHf2A9Tl+Bj57OUF kahA== 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=Ex7yw1lQczP0ITUnFepv3CVHMb3h+CZosEwIOZGlzcM=; b=ESOakGBvexr2ZuIRb0dlWkwws64A8f/b4J9m1oT2VpQPSp0EVmg1itT1d/hMyu3r6N TOxTUFdmEpXX6Jx8cohavDKIPWfo9htTn1nQEqP2YbY5H7Hr20dyxGLFzYEjgLXk0SUC 8tPa3QFb8zo3M7kF2G79iuhTR6OkiQvtNzgT67iuvhiz91Q2dXKmdkl2Nu1G70dVCbO5 m5ZBq6BXYK4FHz1g86iLBKi0ugWHt65XdbhSyY56e50V3j3FMQzJC9qsnd0Jpwa8kSRo A5FX1na16gFx4OLlzgXoovkrmskWF/VB0ke78p5AWlTYF0qhVDjItRRxakU7IOuAeWmt tFbw== X-Gm-Message-State: APjAAAW23hRWZ6zqUm0eSpLZ1+lEgxk164hEvD2BmJkohcGpWizU7vDx u/wO210oUXwKDxtJL7tW+7F+w5G1nT8= X-Google-Smtp-Source: APXvYqwpkK5wCFcfsl/1ArssjmFgfSFTVjhXI5BYL1aX2bbtzhudqUNXDox5UxvMTnqYfpaxQrc6hQ== X-Received: by 2002:a19:c014:: with SMTP id q20mr947312lff.208.1580971480890; Wed, 05 Feb 2020 22:44:40 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.googlemail.com with ESMTPSA id o19sm939669lji.54.2020.02.05.22.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 22:44:40 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk , Olivier Matz Date: Thu, 6 Feb 2020 09:44:22 +0300 Message-Id: <20200206064426.45697-4-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200206064426.45697-1-dmitry.kozliuk@gmail.com> References: <20200206064426.45697-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 3/7] cmdline: use portable format attribute X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Use portable format attribute for output strings. Signed-off-by: Dmitry Kozlyuk --- lib/librte_cmdline/cmdline.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_cmdline/cmdline.h b/lib/librte_cmdline/cmdline.h index 27d2effdf..952a50829 100644 --- a/lib/librte_cmdline/cmdline.h +++ b/lib/librte_cmdline/cmdline.h @@ -7,6 +7,8 @@ #ifndef _CMDLINE_H_ #define _CMDLINE_H_ +#include + #include #include #include @@ -34,7 +36,7 @@ struct cmdline *cmdline_new(cmdline_parse_ctx_t *ctx, const char *prompt, int s_ void cmdline_set_prompt(struct cmdline *cl, const char *prompt); void cmdline_free(struct cmdline *cl); void cmdline_printf(const struct cmdline *cl, const char *fmt, ...) - __attribute__((format(printf,2,3))); + __rte_format(printf, 2, 3); int cmdline_in(struct cmdline *cl, const char *buf, int size); int cmdline_write_char(struct rdline *rdl, char c); -- 2.25.0