Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp559817pxu; Thu, 3 Dec 2020 07:14:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGI97P7jX1bB3S7nMCzAlGpQpYq3hi75CTLu35Cy1CHRMmEah/XPNZtdGn67WE/7MN4Q7I X-Received: by 2002:a17:906:941a:: with SMTP id q26mr2956073ejx.227.1607008446589; Thu, 03 Dec 2020 07:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607008446; cv=none; d=google.com; s=arc-20160816; b=0GTMeYv+/WI/PWt+/g4rCuuL5j/uiGWuF18m4PwgC/JvsHZeSGtswjC+KJAVQpJYAv gsFegBIcJgBh+5iJSfC3n2wyXFk4qegrF2P/hm6KYWphlCwCO+5ihZxWecIPjp+uuCNE ZSOvrVSG1z8VguKxuVhaxjDFy3C/FXUyWmdWHvyQxAnSsFMA3J9b4w4+P3r9IlpWBicH +mhm712COWAVBOGNQt0HnQ8WJt/5CEvL3B0AoziSciisclxSEC4pEOXLT9h5bPrBMKPS yDiZJLzDJqfqIaQ4rfeyk05d3maHQTV5LgfxiILSb+IweSTlpTk/7c2ulrznbMTLfU2b Mxyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IBftimYBdL+rPRjoBGoNau5FbS8yM8qo7/BB2RqpMY4=; b=TyKQBLlMa31Wk1Spg5dZoH/2xCX0vwx1xfRh9aheiIdy1y/rJHfxo6aguVrPHkrz/C SsnPSVDrNjqtSSov3BPqJUxrbJIC3uI7Ysh3rJICJNeInZzcYJ9fuleRGS62MhtefpdT e5MD1fOOieSFR1IBxfS3pzpp0tMNKsBbUV60SSaCZlQbVXpFDP5VO0Uegs16kju4uIus XG57V/jmUxEpM9S9JuU2N/UCIHCE5h/UOL/O1/2te9C6OztXw5z9rLEwq4vnoUIxTDCU AfFdUc8B+j4rqFfICK7+ZSsdQ7WACx+x+OWPfXSNbtQK+gLe8qkfa8HKI1dkxiZgYLRQ b/ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I3Wqvjvi; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nq4si1492555ejb.115.2020.12.03.07.13.42; Thu, 03 Dec 2020 07:14:06 -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=@redhat.com header.s=mimecast20190719 header.b=I3Wqvjvi; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387991AbgLCPMM (ORCPT + 99 others); Thu, 3 Dec 2020 10:12:12 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:26660 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbgLCPMM (ORCPT ); Thu, 3 Dec 2020 10:12:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607008245; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IBftimYBdL+rPRjoBGoNau5FbS8yM8qo7/BB2RqpMY4=; b=I3WqvjvieOkKLyyl0keYMLxxFOHemzRAXfn3vbpOlAi9SR3LeqoXmC1gBiSgGArx/IncPt Ae+s9/TNYQYUdvvpf/+RSviI9cvepSd3wO0p33+BHhK/xFgNIyqYEobp/swnGr2wbNNjAU gcVIFxsCILHUBg7dSwM/GIks8USnFnc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-309-WLVmL-oKMzq2YN7CX2rNpQ-1; Thu, 03 Dec 2020 10:10:43 -0500 X-MC-Unique: WLVmL-oKMzq2YN7CX2rNpQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3835E1034AF3; Thu, 3 Dec 2020 15:10:41 +0000 (UTC) Received: from krava (unknown [10.40.195.70]) by smtp.corp.redhat.com (Postfix) with SMTP id CFF3719C44; Thu, 3 Dec 2020 15:10:38 +0000 (UTC) Date: Thu, 3 Dec 2020 16:10:37 +0100 From: Jiri Olsa To: Brendan Jackman Cc: bpf@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , KP Singh , Florent Revest , linux-kernel@vger.kernel.org, Jiri Olsa Subject: Re: [PATCH bpf-next] tools/resolve_btfids: Fix some error messages Message-ID: <20201203151037.GC3518322@krava> References: <20201203102234.648540-1-jackmanb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201203102234.648540-1-jackmanb@google.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 10:22:34AM +0000, Brendan Jackman wrote: > Add missing newlines and fix polarity of strerror argument. > > Signed-off-by: Brendan Jackman Acked-by: Jiri Olsa thanks, jirka > --- > 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 >