Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4166211ybe; Mon, 9 Sep 2019 05:25:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyscpP3WOvYdwtUet9Gc1qJrTSW/JzOlrFqMF2opnepkWQ69uMZ0JPoL+K93AeaTGvVplqD X-Received: by 2002:a17:906:4882:: with SMTP id v2mr19547838ejq.100.1568031906725; Mon, 09 Sep 2019 05:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568031906; cv=none; d=google.com; s=arc-20160816; b=LwPB+8daStPSLQ/F+k36j+Oe1s0JbddPqK+ZTOmWQTQUoL66AFEiggPNVORcJ1FN/g RmGJx5R4rWe3ADQ1V/cPluxpl2S+5SoO+hQOIk+la9226XwvgHs6/dzE8lWVhHI1FqMW 3OH+G2TeVgElabwVkDkiKHWYBGFDS4o4JU+ZQ66JiuTVzIg4pWP7+ROG16VbbJx3skac VIIOGTy9NbWZuB5XwoyB538qzzDNrAGwEzLH9N/9efP2K73392Pc1TAU6pPP96Qb/NrE mJJ/ed62LJy91/E1XGjFI2TK8622BmMjsVZvau/Aq6R56His72DjBvdCGC6yzOdGl/CG gOXw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zDAy4lLumGALxR5xwv/Z+DKrxuL/zI4M5lRpv/zB8bY=; b=C8dENzNhVVXh2lmUnSQTwDuJnDp56isYNUn9R2u/6THa07RCX8FBzIyaeAr6VbOy1c lFeEbWybYx+6cCSZAPRv3hSpCr6pc/XRnSdOnYyYp6bz5HUkktoPztZjpanzFYfM7cFH 4luclVF2untTTpEEvPessrXYFlcZVB1R3JNd0A0uon2zdoITmy/YiB+CPUk7ud9Kh+dI w4c5PRgz4SeqQ7dJoabqA834YUzIxTNS74qLZqBYwRJzMK+Qg2zl4j5w8I7eJusY+yzE ND4sB81ZHRUJN0jt1LIhM3dhb8Hg6kKMOPnbpKJHMvZh/k+4lt+JcWIh4IzSz62cOWqA iiqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j9smrZ7D; 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 qt15si7394272ejb.252.2019.09.09.05.24.42; Mon, 09 Sep 2019 05:25:06 -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=@kernel.org header.s=default header.b=j9smrZ7D; 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 S1726640AbfIHM6b (ORCPT + 99 others); Sun, 8 Sep 2019 08:58:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:35156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbfIHMrG (ORCPT ); Sun, 8 Sep 2019 08:47:06 -0400 Received: from localhost (unknown [62.28.240.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1611218AF; Sun, 8 Sep 2019 12:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567946826; bh=DDRBfrNOnnNyPPEaw7z11TCRBuBCJY42KwC9RympBBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j9smrZ7DlNUm2bPDAqtrBDenVJmd0gR3tHL3OstFPcO+4iCO9mU/ns7O9PopOnhRB Ihn1nHy2yS9oUTcxp2wbaox/B2NGT9kjWSI6YhoAlwwB2zDT/pFxRcBg15Yay6/hSZ 0xE2DM59xzQxHMdf5HwAVQap19iKvzuops132aXc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , Quentin Monnet , Daniel Borkmann , Sasha Levin Subject: [PATCH 4.19 15/57] tools: bpftool: fix error message (prog -> object) Date: Sun, 8 Sep 2019 13:41:39 +0100 Message-Id: <20190908121131.936905876@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190908121125.608195329@linuxfoundation.org> References: <20190908121125.608195329@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit b3e78adcbf991a4e8b2ebb23c9889e968ec76c5f ] Change an error message to work for any object being pinned not just programs. Fixes: 71bb428fe2c1 ("tools: bpf: add bpftool") Signed-off-by: Jakub Kicinski Reviewed-by: Quentin Monnet Signed-off-by: Daniel Borkmann Signed-off-by: Sasha Levin --- tools/bpf/bpftool/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bpf/bpftool/common.c b/tools/bpf/bpftool/common.c index fcaf00621102f..be7aebff0c1e5 100644 --- a/tools/bpf/bpftool/common.c +++ b/tools/bpf/bpftool/common.c @@ -238,7 +238,7 @@ int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(__u32)) fd = get_fd_by_id(id); if (fd < 0) { - p_err("can't get prog by id (%u): %s", id, strerror(errno)); + p_err("can't open object by id (%u): %s", id, strerror(errno)); return -1; } -- 2.20.1