Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1283196yba; Thu, 9 May 2019 13:54:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/DpYsfv8Ux76ODVs8Ooz27xMA55O2BCk3pyvnnlrF7mGgxl6qWU/fOZSp7tKtgK3WFNdC X-Received: by 2002:a63:6884:: with SMTP id d126mr8628539pgc.154.1557435266673; Thu, 09 May 2019 13:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557435266; cv=none; d=google.com; s=arc-20160816; b=YEillfATE3Nm8aYhdNVQg/h8HcM5JuTSn6/Bp8KDY5Cc5i3Lr2VbNJYa8Ai4ckk5xM eGGxq0Ty9t86mC1sB8M/3ZkFFeJSgnL4zDCMnk0qGrn+gghF7FwsvEpQQAl29++qwilh HF8oNLCuKoiIe6PkKmx8+9KKGpWw57p2aPz2VArTvhDlgF7cDE8bcNGyX5aD2SsDfiYV 5rqU3MW3Y64C7rhgVQdvm0zwnqL7d3X1EYWK1LhBHA/CHZtXDSVN15gJ8UJhQ1A7xevQ sFbOYCEIoA42yMxaNk5es1+pykDjhkPgA87vzAJIkrWT0F8JTDeV2+QTW/fWxq7K1sgw 9G0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8izfY7QaATSiteV+jgAASzN3KHkaEiuR2IercyuoomA=; b=Mppr92Z3aVO2NPHVq05Tu8OYLWWf+dmcZApru7QtkgDplYs36w8qWkbgfYPsyMRwv2 WBq2JYL2jlrStYIyBwpT+ZbfhEc7PG+Hye8q3h0L+0ebqmfkb4X6xgejWS7CC9wEmBVF XEmb11DkZm6bigtTvjwozn3u0ZFUBHA9cIg/Z2HHqJTDYhXUQm73qfhQptBffW0VzyaJ U2xczqqiQg78L3JQL2qJ6PpciIQJGvsfCgBHrVXvcSDAz4waNeToSVj0Ldn0KfFfAU76 LqfWSacBH93SaMMAohAoCfgKmx5iGUd7KO204kRlsWi7Z83S9r14OK4hiBc1nb30D7Uh 9LkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=onL47UGd; 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 f15si4591742pff.105.2019.05.09.13.54.10; Thu, 09 May 2019 13:54:26 -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=onL47UGd; 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 S1726960AbfEIUwI (ORCPT + 99 others); Thu, 9 May 2019 16:52:08 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:44420 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726682AbfEIUwH (ORCPT ); Thu, 9 May 2019 16:52:07 -0400 Received: by mail-lf1-f65.google.com with SMTP id n134so2542713lfn.11; Thu, 09 May 2019 13:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8izfY7QaATSiteV+jgAASzN3KHkaEiuR2IercyuoomA=; b=onL47UGdbdYp6jBL7dw86aJtJ9+XHCblfj1S2UF8L/0l3M1HoE5EjfEZB+8ncJeQes CDq5hzA3ZEaeJgjsNmL5afpuLujvbJ9AZg//GUXdDGZXNKg2qKFPZl0Nonmyig/rXyhM 4KJCtrxJYPhjcgpCenoPS2oNj0FSsh9AmdxSww3hqpHCC0RAt91ex0HsmooyKMhrNBP7 qcjLhwYf1WeT6N4kSKxq8vRbbkbjWTkFtDhgHs2bgzqpJiZbNT6iwE1AgIv0hQa9apvY Z1YBewW/UToX3mwziHunEM9TDkS1f5ybpDHj9kbzaGXGI7liVus8VKLd6MTttJd9HqMS KFuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8izfY7QaATSiteV+jgAASzN3KHkaEiuR2IercyuoomA=; b=FuuCa2wVun9clu7QQgVbVdLhCGAvCLgYgAkBermclrX5kPxsC506S7Z/cGXr1zpNJ1 EApTEUy7OCzzwiHuPTTgf2zsskYVNjQU2qkLsElZf/hx+nDBsIFJsMXBCjlX0JYlmETy dL8UWzMra3JtYBgA9s9YKlvcjE8cYf7xYAFpaluFsp0yiIM4jwp5AU/IGUcHW2reEMP9 hKOE3a2LxqkZeb5N2rQAam+dpzzhUh2BzCioA02HDKJnzompXGBRJSo93srmr+GOBS3g a6DB7nUI/D/nqSGxAeayfEfLyQdPNdXwrfn7kov2x6wCyDmeSa1z0i33fWRbDpWP6Ez/ rtYA== X-Gm-Message-State: APjAAAXh81rT/bSYUMMOJJ5kdcFZqIyyELLqIJ5kZEYJ740F9YYEnACf HVVPYfdrt4yzJY1l3AsXkSMfXp4XzkQyZAmmtiw= X-Received: by 2002:ac2:5606:: with SMTP id v6mr3318657lfd.129.1557435125608; Thu, 09 May 2019 13:52:05 -0700 (PDT) MIME-Version: 1.0 References: <20190507231224.GA3787@ip-172-31-29-54.us-west-2.compute.internal> In-Reply-To: <20190507231224.GA3787@ip-172-31-29-54.us-west-2.compute.internal> From: Alexei Starovoitov Date: Thu, 9 May 2019 13:51:54 -0700 Message-ID: Subject: Re: [PATCH] selftests/bpf: Fix compile warning in bpf selftest To: Alakesh Haloi Cc: Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , "open list:KERNEL SELFTEST FRAMEWORK" , Network Development , bpf , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 7, 2019 at 4:12 PM Alakesh Haloi wrot= e: > > This fixes the following compile time warning > > flow_dissector_load.c: In function =E2=80=98detach_program=E2=80=99: > 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/te= sting/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 =3D system(command); > if (ret) > - error(1, errno, command); > + error(1, errno, "%s", command); > } it was fixed month ago.