Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4315463yba; Tue, 7 May 2019 16:14:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0KQEOM1Gr+NfAnsiYL60tOYACu5f6JD1mBwP6ijZrmeYxXbd5/jGVaJVPNo0HttqQswOn X-Received: by 2002:aa7:8054:: with SMTP id y20mr44502540pfm.108.1557270884971; Tue, 07 May 2019 16:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557270884; cv=none; d=google.com; s=arc-20160816; b=LWcrVCflJsr7FAt+9pEkZsrTdqymIoCNWTo5BxBICf4fffAv+scg7k99bLjsF2Tpdf Do7xtTR5F3vkYw55NiBRijBOfSY8jpxK2Yd7dYojoW87OAlXQC/IRL9V8Audkzh17QFr eOuKzRUohGEeYVPX8ocpLtKpaGY/PGU7iammLyge0B1EoAW4BO6XrlPiUZYranMDnPNv 7+XbssjamFZLkM3enpW5uwGygOF5y0TmxnKTNF3NBGaqhBU0sqYlhx7lWlrO/72JwAbp LJf3OoagyGMF+S8KFKqVqJcglt4n/GL0BzMO/3AgFtQ7r1/b4qjMzfMRCBjJFvwvbarb 7IVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:to:from:date :dkim-signature; bh=t+991fJXyuKUQQwkL0XKlpY3wv/FZAEDqC4Kot14BtA=; b=vdv5v9H56CM7/aEkSNWV9c+Q2/3T1+BpNrnmrM8d+zKBxkotcVEYQmtjO7BUTdz30Y PzkaVc7y0uMo7a1QO5XsAviB3/BSA9NBruE19X3MwpuBbnuGy4OWfIkeO9c468PKhSBb bri12g0vrGUiWD7Mh1qI98tLKaKDIxeAZEE1F+oi5A063Ojg0aZvG9h/+GfGafP803LK hkCKldQPVUWYtuZyrSF8dsiaDmufHR+mMvx5Zp6f2AFAga9dSWAja8924hzywZ1yqEtx QYDzkl2KfwMpmPeU0UZP4Llp6/w29H81ohIog6SeNQ4g3m2Ak97rKNG0JPB9r/YEnp0E gdQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DhWdNayW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18si14167867pll.209.2019.05.07.16.14.29; Tue, 07 May 2019 16:14:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DhWdNayW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726557AbfEGXM3 (ORCPT + 99 others); Tue, 7 May 2019 19:12:29 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41561 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbfEGXM2 (ORCPT ); Tue, 7 May 2019 19:12:28 -0400 Received: by mail-pg1-f196.google.com with SMTP id z3so5352566pgp.8; Tue, 07 May 2019 16:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=t+991fJXyuKUQQwkL0XKlpY3wv/FZAEDqC4Kot14BtA=; b=DhWdNayWQ0DUYtDPLP/TGT0af+Nm0QhDBmfY67WSbKdeX1UWpHwzh/Q7P+uDYe4EcN AkbuklBVS7UoRbi8wyfzD7g/mZEYeFLosQkDS26rr/aI2zw2g2dhfoT8u2ga1oq6CG3G TKtXYk0EPormBR8yK1Te15uGGGT+yDZPL3+zy8kQ4K8KMjZ5omfyg6wrBfvYlgpvUA2l +W4bL/vkTAUfXn8oy9/L085ZD0NbKoAViQG3CChuyI8xq/EwnTsEyd+HYcE3xN1ZMjpR ArniJr6hfneg5BwNq6x3meiQFDuuLrW8rSFNL9S90XBoDKvfyppnnEj1Eqo5ICGDt2Wp QhBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=t+991fJXyuKUQQwkL0XKlpY3wv/FZAEDqC4Kot14BtA=; b=RABut2IEtidVFgtZDUQ1uLvoFYNNmq+U9RWx/5TCy22YNCtOfNtz0lmkOpqpDaSH/z qW7FI1+NUuwI/OfVKeQYHbgiRHEVkjoNX/RePDOntE+1t/VyFFFt19veoYb7EMf2peWQ XLd4PImVMIUaHAY5v2AQgUI+mdXUeBRCxKEEibCMmdg6op4Ws26ZGVcc8Mg1wQ2bvfA+ zXO81ld5+3jMuUngB/VBMb9fwNnDVegYhHjDt0wvs7w14z61dT0E1Uao1zd6UDtlEURI iDffYQNV+ajzeQhSzDToc7SmwNXDmuMVfAa5HIlu8b6ofSdchU4Zaafpahg+k/EXx87P F7vA== X-Gm-Message-State: APjAAAXbtwg3T5Hu4qGZRvhcLeCgxWRdvfi+6tpCftj0ba3eXtOpsNuN RkhgbvTN1RrfqS74U6j7RBw= X-Received: by 2002:a63:5c1a:: with SMTP id q26mr31172530pgb.73.1557270747924; Tue, 07 May 2019 16:12:27 -0700 (PDT) Received: from ip-172-31-29-54.us-west-2.compute.internal (ec2-34-219-153-187.us-west-2.compute.amazonaws.com. [34.219.153.187]) by smtp.gmail.com with ESMTPSA id v14sm18171723pfm.95.2019.05.07.16.12.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 16:12:26 -0700 (PDT) Date: Tue, 7 May 2019 23:12:24 +0000 From: Alakesh Haloi To: Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/bpf: Fix compile warning in bpf selftest Message-ID: <20190507231224.GA3787@ip-172-31-29-54.us-west-2.compute.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the following compile time warning flow_dissector_load.c: In function ‘detach_program’: flow_dissector_load.c:55:19: warning: format not a string literal and no format arguments [-Wformat-security] error(1, errno, command); ^~~~~~~ Signed-off-by: Alakesh Haloi --- tools/testing/selftests/bpf/flow_dissector_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/flow_dissector_load.c b/tools/testing/selftests/bpf/flow_dissector_load.c index 77cafa66d048..7136ab9ffa73 100644 --- a/tools/testing/selftests/bpf/flow_dissector_load.c +++ b/tools/testing/selftests/bpf/flow_dissector_load.c @@ -52,7 +52,7 @@ static void detach_program(void) sprintf(command, "rm -r %s", cfg_pin_path); ret = system(command); if (ret) - error(1, errno, command); + error(1, errno, "%s", command); } static void parse_opts(int argc, char **argv) -- 2.17.1