Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1312356lqb; Thu, 18 Apr 2024 06:31:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVA6fhdJxbTsPAz7ZNMuKNVCSaJF+aGLaqLDiRj0+8sN97TnehhqPQuNdaRMcjA4T4wRKlpN/Qin40gO45YnlgBBfx6EgjhAsdqz5k4qw== X-Google-Smtp-Source: AGHT+IE+wTEaBzme/8ErOpD7yrrEAKN0s+xUN+/99Qj9XREFolyIfmA7R8hL4oayBoL21UlDC76z X-Received: by 2002:a05:6a21:9201:b0:1aa:3a64:6eeb with SMTP id tl1-20020a056a21920100b001aa3a646eebmr3058927pzb.40.1713447096665; Thu, 18 Apr 2024 06:31:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713447096; cv=pass; d=google.com; s=arc-20160816; b=QI5dJYueFIpxN/rQUAGSB+JMJSL3Aemd9MypW2KUvemxITdBRb1qanYLtXOqP+E9ud SN0VT1az8BMlAujCAO5nsm6dXgS7fPXTEcyNOoJa6xYuj2w393HBrboTpMi0+VwLfB8o +X+OgQYBcOaad+tOok3VvR+bYo1LvJ1NqrI74JHV6apWkWVekLR2mLS2wFY0YtZ3KNb9 huhMkhtHZkIiGqfTclXLEdi9zyMvzvvPP/x85939QcZqczdl56aRQNSYRRokTPtPtdRy CwF3BxsGqi3hOnIGqdRmbiXLjqKy5MSYiFXw92aVWmlfbeBG7UEpcgFTMngWwqNgv+SP R/vQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=OvSVMY2U2UKPyg/iMWDA/hlFGSF/lCeUDDHpGo7YLeY=; fh=qYBgL0xDXiZbrLeipx8X/fz2jSxMbqgYzzneIVPF86s=; b=r/dzdBou3fK+FwClrkfSmYTTQkV3MyCdFiifqZHPg3j/s2ylSd9k/YCx+j8pLcK0mO oIdeS4+7FnizvZoaxfbgUpjiRC1I+P6MZO1wOgMlpajf5eQpnco/74VF4hyW/w6RHiKI tM350+letkL1n9UUNxbg/u9Tfs42sZbuwiBEWSSnXn97eignHpcWzRHTOBqWFXzMw9Kt QnDfNzQcTegVRsWEw3hQy/kUAkexvlDSLW1jnXF+ZLq8Z0fhbu0at6yUsqh5LKd4Re/a loBSw/pUqICmVyU3otMu8LJkUEmh7zBlyjzz9TdVfh4dnQwh+joY7JS6o+92sNvyrDAh 1OWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-150171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id by16-20020a056a02059000b005c69365abc9si1571613pgb.687.2024.04.18.06.31.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 06:31:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-150171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3B4BEB23F76 for ; Thu, 18 Apr 2024 13:29:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 602FD16078E; Thu, 18 Apr 2024 13:29:04 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9D2615FA9F; Thu, 18 Apr 2024 13:29:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446943; cv=none; b=f46uYa+B2xQAOIYIko6xk8l5lizhpmDVKfZEcIJxkgSydx9vkKYEfcsY1FEvlXRTSs+Fx6QsL83ZEN11PrcafHhdWFT5kI2e4YvHV0JgSYo/WCBslvFywk1arVjK8OnDxzUf923n+lqsc5ssRe4j6h8O//K/UznLxPAJ3hg1wvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446943; c=relaxed/simple; bh=C3BIxOYSx6Edn78b6t4WlyI2Ut5N1AqMlgcYCcsxom4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OPB97QaFehb3Mpa25yRana94Fp4zjXPxcz2eaZsBAnL067+us8tnkH2RGXcViPif4NYeKRkXRk/sDJjJz6EDtPtsAyMjM+/NQSHxNNqZY4SqR2OOf2sAhOqdz9bL5r5OEznmPCuTl5VOuy5Wlye0e6tqjQjMFE8i5g7tAQYb08Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VKyqK5btzzJsf9; Thu, 18 Apr 2024 21:12:13 +0800 (CST) Received: from kwepemd100011.china.huawei.com (unknown [7.221.188.204]) by mail.maildlp.com (Postfix) with ESMTPS id A23681800C3; Thu, 18 Apr 2024 21:13:15 +0800 (CST) Received: from M910t.huawei.com (10.110.54.157) by kwepemd100011.china.huawei.com (7.221.188.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Thu, 18 Apr 2024 21:13:14 +0800 From: Changbin Du To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim CC: Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , , , Changbin Du Subject: [PATCH 1/4] perf trace beauty: Fix statx flags printing Date: Thu, 18 Apr 2024 21:13:01 +0800 Message-ID: <20240418131304.3188385-2-changbin.du@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240418131304.3188385-1-changbin.du@huawei.com> References: <20240418131304.3188385-1-changbin.du@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemd100011.china.huawei.com (7.221.188.204) Missed a string specifier '%s' in format string. Signed-off-by: Changbin Du --- tools/perf/trace/beauty/statx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/trace/beauty/statx.c b/tools/perf/trace/beauty/statx.c index dc5943a6352d..c61f2be53bda 100644 --- a/tools/perf/trace/beauty/statx.c +++ b/tools/perf/trace/beauty/statx.c @@ -21,7 +21,7 @@ size_t syscall_arg__scnprintf_statx_flags(char *bf, size_t size, struct syscall_ return scnprintf(bf, size, "%s%s", show_prefix ? "AT_STATX_" : "", "SYNC_AS_STAT"); #define P_FLAG(n) \ if (flags & AT_##n) { \ - printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", show_prefix ? prefix : "", #n); \ + printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? prefix : "", #n); \ flags &= ~AT_##n; \ } -- 2.34.1