Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp371904pxu; Thu, 3 Dec 2020 02:27:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJznXgF91wnwFXOwWSTAzTI+WD/hDMx4s49iNjhh+KWdWtl/0luVBgdziPoICL4D64QFDhlJ X-Received: by 2002:a17:906:1752:: with SMTP id d18mr1911056eje.529.1606991233822; Thu, 03 Dec 2020 02:27:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606991233; cv=none; d=google.com; s=arc-20160816; b=wGrhVfet+oQD95/3CTbTzM1lFuLFYws7xuSLrevJoR6GkEs4L/oxyjR026h+1fAmrx uG8stG5u5Jk2MRO++SDOj2IE5aOv+yioLVzZ4NXHcvt0NY7LqygBipWKGYPf6H6XpWVJ oUm4U/UwyD0gZa5f4JmLPCs2H+s11cM+U8sgxBUFZFKlANI2iIYffCDLddDCRmwI616n /ILp6f/CoS4RbzsCKhKK9m3+06tSOuFv/y4xIpLDncNGI+WXZoOU5VOBuhhLKeJF7nVF eCKKYBxjmo9sptYQ+jnGiI3+B3dEwBXE5IdXrpDejU9KHSFk6/NyPGUABHTXieFBInBE qBAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=vsqjzCG97dcihSHBib7qbR9auIczQ/SwW03OgCf6BLA=; b=iHopOMeOCcQa9BNh9r759o6F3JPK+TrzO0nhRQuvfy5++sEBbJdOT0VN+k4UqZXF6G Y7I9O7u2O9qgnfM1Y5FnJmiQWfA+Jvv76G/gGjUS6xF+KqBVIzP5xq4p6zPMtGb7uh61 cJA2y6OLnGjXp5TMf+hhh60XVTM26FTFz8oxcXdpWUoolv0qlCpwpK6Tw/S1EQZaQOIu JvMhnaTQWv1kxwfnrkXfz+Nce1LaEd73CxEvZKkJROpGwPz+ou89jG8y9WIjySrsqSZB FsvreP7dfib4uwPm2hOj4g15Gy0RZc8O8cZ7MZckgVBHpIFWnnNbPZX7H4HfDZFZPrPm 1o2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KO9gk6of; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p18si750284eds.125.2020.12.03.02.26.50; Thu, 03 Dec 2020 02:27:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KO9gk6of; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730191AbgLCKX0 (ORCPT + 99 others); Thu, 3 Dec 2020 05:23:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbgLCKXZ (ORCPT ); Thu, 3 Dec 2020 05:23:25 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46665C061A4D for ; Thu, 3 Dec 2020 02:22:39 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id c137so2040542ybf.21 for ; Thu, 03 Dec 2020 02:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=vsqjzCG97dcihSHBib7qbR9auIczQ/SwW03OgCf6BLA=; b=KO9gk6ofgaQ/Jly7j0A1VuJ6WlC1hiy7I+SkR3CY5r4rxRyKJeUQJmvfI/EQno6COp Pd5OebmmiB9NnixUYZFdzXYXFPucr2NFVCJ7nsQLg4JEgZ8uM3j6/SLlKg6hm1FJVOBu vGKFcN2JlhWOB/MmW4n59K6e6vFmIyzDiqEVKgJN+4MitUUEpIXYlefxLkirm+Ji95+9 kWj/WrWvm0TWkh91QmiTAY7BkkiwOMsXCHkbtaPOLWd+z8GpWdK56UOyIDk3JCvz9Wl8 9cKrvOom8gi+fx+rfKBTzI4qnYw3HlJm7SXwg3gonwaCZzLeSdMV/qKKn9pa8x8WNwTZ 2ezQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=vsqjzCG97dcihSHBib7qbR9auIczQ/SwW03OgCf6BLA=; b=qDkK2w1jc7FlmZlgq2OS08y+4SayVPXmcE7BJORjgz6nV3fCfKlC5J6Ck7TJpfdp46 0bP3IrjEEL1N2bVZhTIBWMSgApplOHdndFbiH5o3Znj+nRrgrvoBY1Dql32xYHMMIyJt TA+jC4Taiae3hMjeraXaXqA2MiAWzABF1+DBBmGGcitgA5piKcxkGNuH+Bp2+xTlIg6W xnhfZVGvO7q5DWAR/9I7E3Volia+oP8i0ulkkkWYZvGT+bSIXiUFNVQCXLRZx9IjNP/p sq32oJUxWoy77YmyAvdStfQsTE7baMQtCC0VOy9ELbQTaVVAJhgRadX+ypVeAMc8AhLR 7hKA== X-Gm-Message-State: AOAM533Hj7aNDm0khkb8Hu4i27+NT4VGOb5RYj6k6G1wArXgSkIbPKIK eE/6AgQbs/4vD2XE7l2fdQoJoPEw1tEIBw== Sender: "jackmanb via sendgmr" X-Received: from beeg.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:11db]) (user=jackmanb job=sendgmr) by 2002:a25:38d2:: with SMTP id f201mr3520867yba.103.1606990958512; Thu, 03 Dec 2020 02:22:38 -0800 (PST) Date: Thu, 3 Dec 2020 10:22:34 +0000 Message-Id: <20201203102234.648540-1-jackmanb@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH bpf-next] tools/resolve_btfids: Fix some error messages From: Brendan Jackman To: bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , KP Singh , Florent Revest , linux-kernel@vger.kernel.org, Jiri Olsa , Brendan Jackman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing newlines and fix polarity of strerror argument. Signed-off-by: Brendan Jackman --- tools/bpf/resolve_btfids/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/bpf/resolve_btfids/main.c b/tools/bpf/resolve_btfids/main.c index dfa540d8a02d..e3ea569ee125 100644 --- a/tools/bpf/resolve_btfids/main.c +++ b/tools/bpf/resolve_btfids/main.c @@ -454,7 +454,7 @@ static int symbols_collect(struct object *obj) return -ENOMEM; if (id->addr_cnt >= ADDR_CNT) { - pr_err("FAILED symbol %s crossed the number of allowed lists", + pr_err("FAILED symbol %s crossed the number of allowed lists\n", id->name); return -1; } @@ -477,8 +477,8 @@ static int symbols_resolve(struct object *obj) btf = btf__parse(obj->btf ?: obj->path, NULL); err = libbpf_get_error(btf); if (err) { - pr_err("FAILED: load BTF from %s: %s", - obj->path, strerror(err)); + pr_err("FAILED: load BTF from %s: %s\n", + obj->path, strerror(-err)); return -1; } base-commit: 97306be45fbe7a02461c3c2a57e666cf662b1aaf -- 2.29.2.454.gaff20da3a2-goog