Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2324738ybl; Mon, 20 Jan 2020 00:28:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyF4z4dGo8NtIkEH3wfpiz1VIbm4gs/PrufwRzw8ECN1zxFMxHoaHU8UScTYxlzymUg+J8p X-Received: by 2002:a54:4507:: with SMTP id l7mr11553826oil.164.1579508908879; Mon, 20 Jan 2020 00:28:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579508908; cv=none; d=google.com; s=arc-20160816; b=qB2vM99qGhkz5I89epbxOlMNeYzAaqpPDoNf4DzBvIgvrhxKuNjxyFt6AVa5UbrZvt afLUBKx5buU0/7Jed6KI192QHSvnmJkEs5PWTYhjyN0tLPHI0NKfyU5kqnPuFhCS1dwn v5oSPQHxk5qIKFPUw8Ljfz/Mi+D0tNlV99dDgaCup3ioS/JgMfjbeZCAHe9VOGQqmyP6 onobY8sXi9cMSOsJblLN3qeBIbxmCvfR3rOdyabDgA0okkJWhYxBRDMm0knHIS94m5Z7 m6E/YGrA8ul8Sz5QXB2M0sUio61GdDhNPlM2HonHxvn0PZvNXfRLOkQi7azKELtA0f6M h08w== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=4srF7zTiWhkWXm0Jwu72f7dBom90eBNpsRbFBBo5uJA=; b=ylqcWNevpVUe5suQAfMvtkJx3ou3WcyJYrqePBEmAx88r0+52o/LAu5fbS5+h+MJIL SxbxZSKCC/hfPprtHl/V8fTIs70MKmTWWyjoQSNdRXfRs3fjmzeMoEa77aj4KXdA3mt3 HYJajIiXjdvpiHVxZHNINz67TcMuoPn4ZqSMmreRU2nUd4GFYkztWNomaiVJPkWZr59s vVOuY1dVRtWN+INfIyqirLZvSDha12OJPlTLx8t5N+VNCgPEkRW5+DMWUaeAGlhw/epv ISuMPTSAaZxc0Zso1/+HQkuIjdxbqd5oKjO7t0+4oIphsDAo0AD4VD49WXSNqYHX28t7 kMSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si16716671ote.229.2020.01.20.00.28.17; Mon, 20 Jan 2020 00:28:28 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727031AbgATI1W (ORCPT + 99 others); Mon, 20 Jan 2020 03:27:22 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:60765 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgATI1V (ORCPT ); Mon, 20 Jan 2020 03:27:21 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1itSOu-0002sD-Th; Mon, 20 Jan 2020 09:27:13 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 8AABD1C1A3E; Mon, 20 Jan 2020 09:27:12 +0100 (CET) Date: Mon, 20 Jan 2020 08:27:12 -0000 From: "tip-bot2 for Cengiz Can" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf beauty sockaddr: Fix augmented syscall format warning Cc: Cengiz Can , Peter Zijlstra , Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20200113174438.102975-1-cengiz@kernel.wtf> References: <20200113174438.102975-1-cengiz@kernel.wtf> MIME-Version: 1.0 Message-ID: <157950883237.396.4794014175030555572.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 49e0b6f4e95aa3ade8f512c50d1ccc113fe917b4 Gitweb: https://git.kernel.org/tip/49e0b6f4e95aa3ade8f512c50d1ccc113fe917b4 Author: Cengiz Can AuthorDate: Mon, 13 Jan 2020 20:44:39 +03:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Tue, 14 Jan 2020 12:42:26 -03:00 perf beauty sockaddr: Fix augmented syscall format warning The sockaddr related examples given in `tools/perf/examples/bpf/augmented_syscalls.c` almost always use `long`s to represent most of their fields. However, `size_t syscall_arg__scnprintf_sockaddr(..)` has a `scnprintf` call that uses `"%#x"` as format string. This throws a warning (whenever the syscall argument is `unsigned long`). Added `l` identifier to indicate that the `arg->value` is an unsigned long. Not sure about the complications of this with x86 though. Signed-off-by: Cengiz Can Cc: Peter Zijlstra Link: http://lore.kernel.org/lkml/20200113174438.102975-1-cengiz@kernel.wtf Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/trace/beauty/sockaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/trace/beauty/sockaddr.c b/tools/perf/trace/beauty/sockaddr.c index 173c8f7..e0c13e6 100644 --- a/tools/perf/trace/beauty/sockaddr.c +++ b/tools/perf/trace/beauty/sockaddr.c @@ -72,5 +72,5 @@ size_t syscall_arg__scnprintf_sockaddr(char *bf, size_t size, struct syscall_arg if (arg->augmented.args) return syscall_arg__scnprintf_augmented_sockaddr(arg, bf, size); - return scnprintf(bf, size, "%#x", arg->val); + return scnprintf(bf, size, "%#lx", arg->val); }