From patchwork Fri Dec 21 09:35:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaozhou Liu X-Patchwork-Id: 10740219 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A7D5161F for ; Fri, 21 Dec 2018 09:36:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39FC028592 for ; Fri, 21 Dec 2018 09:36:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D50828669; Fri, 21 Dec 2018 09:36:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E85828592 for ; Fri, 21 Dec 2018 09:36:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731425AbeLUJgL (ORCPT ); Fri, 21 Dec 2018 04:36:11 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36572 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731228AbeLUJgL (ORCPT ); Fri, 21 Dec 2018 04:36:11 -0500 Received: by mail-pg1-f195.google.com with SMTP id n2so2278407pgm.3 for ; Fri, 21 Dec 2018 01:36:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=jOg5unArcqZ+VdWb7aU7utg4uQN/o7oo7CVo+2rNe/E=; b=sHrbCxIlwmo1PszNoDeqH9j4bcGdmpDq6jl9FX67h9iJRDEqgO8e3u6MZaQRwe+LmO SIYM9RCGKHDo0PzLiam08+UcC158NjBbyzYq/qDZkd70IcRnEUa0Cd4DMeWb3rUNwuMT 2ns2s0YTxVREampBsNoZP7fOc/hov/bEed+hsXX1a7YSjQjFsuXHAs7T7RssAJbABzvo pGn6S8vZI0g1JMUIwONvts4kC9HBpo9BsHjqy33UuVL/uLhCfuoFX5h3+b6QUprLqLI3 i6MmJCk03dp894RbNoy8+NcTJIba/oYK+qalLNyU2yvtjmww9X7NHJUB3O8waA98hPVZ 5Xqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jOg5unArcqZ+VdWb7aU7utg4uQN/o7oo7CVo+2rNe/E=; b=taSvLfsiZBjROlNUdyAn70vC3XXME8Nf0aWXCdirCDVhKeEIr5FT14naXHvc5dRxDu J2mywbKhF7aId39hsbXs1FQ26uTaehqG3iHTkjR0pVQ0qcxuymoP/vGnPEnNPtFflWI2 txk9XI7tvKZs9LuT2Rw1ujXZJOF+NBeERhQdz8GzrWGdVTwJNKZVo6fvWZugUpqX7Ruh uOX1Zo9izDuXyzN/eSXXzNoK5vh+qbJNKK4uGFx8D/RneeRokulhoXPFkDFlHksawhOY vdA6JFVh83r2BdgB9wdWcOFhxm9Lj26c/e2XwmV745Iz63LDzJR8e7QFCqt9kDLg4iFU DoMg== X-Gm-Message-State: AA+aEWbZiNx481RE0OBdLbyuICcl7MkEsnhBVilZUpOqVSG6IXZAKiPP yvM2Bkb6qnjAOiuomcP49NEp5JxXIcZGjQ== X-Google-Smtp-Source: AFSGD/WOCiRyxTe9pWFuLL7JQRMZYoSb65x37DvfsVQXCq0e2e97AxrqafQ4ZDb/S+EdRMb8LQznDg== X-Received: by 2002:a62:1289:: with SMTP id 9mr1799825pfs.102.1545384969977; Fri, 21 Dec 2018 01:36:09 -0800 (PST) Received: from n3-021-216.byted.org ([122.14.241.161]) by smtp.gmail.com with ESMTPSA id g3sm51601804pfe.37.2018.12.21.01.36.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Dec 2018 01:36:08 -0800 (PST) From: Xiaozhou Liu To: netdev@vger.kernel.org Cc: Xiaozhou Liu , Alexei Starovoitov , Daniel Borkmann , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH bpf-next] selftests/bpf: fix error printing in test_devmap() Date: Fri, 21 Dec 2018 17:35:11 +0800 Message-Id: <20181221093512.117777-1-liuxiaozhou@bytedance.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As a simple fix, just print the correct map type. Signed-off-by: Xiaozhou Liu --- tools/testing/selftests/bpf/test_maps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/test_maps.c b/tools/testing/selftests/bpf/test_maps.c index 9c79ee017df3..e2b9eee37187 100644 --- a/tools/testing/selftests/bpf/test_maps.c +++ b/tools/testing/selftests/bpf/test_maps.c @@ -510,7 +510,7 @@ static void test_devmap(int task, void *data) fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), 2, 0); if (fd < 0) { - printf("Failed to create arraymap '%s'!\n", strerror(errno)); + printf("Failed to create devmap '%s'!\n", strerror(errno)); exit(1); }