Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp823073imu; Fri, 21 Dec 2018 07:58:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN695qyK5zIgnQAaHFefG49p7bsxLD18wnv84N4jFlaDM5mXmdNtvDpSn5LJMBfafpX6CJdo X-Received: by 2002:a63:160d:: with SMTP id w13mr2995591pgl.43.1545407910442; Fri, 21 Dec 2018 07:58:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545407910; cv=none; d=google.com; s=arc-20160816; b=kXO0qCmuOW9VAVOWVVZWZcocIZckjZrPVRnq+2+Fkv8zciVDkaMGkc1nIHBJBLqq+G y9OnbeiU706NEGuX28qAKpT1uYokuzjbwhnTengIqCBj3TAeWcUJaaHQLzL6MaO2llfx FQWX/msoPsIUiUxXpkftgV8ijpLNUaDwpsCdPAGtrO+twln/oC5wXNpvAIMqMikMVjCa pHD6IP8vf2e3u81bzjSBLctJK7roSOglcSl8dY5PwKdamT2vnpbPA1X8pygAvr6m8P+E rb89uwWcTk/3WMdbbeov9Zl3jIyxSmTJ6vH4p31uAQEAmFY0KIdV1Ruj+p+Bh/lIxkXA 426g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=jOg5unArcqZ+VdWb7aU7utg4uQN/o7oo7CVo+2rNe/E=; b=YMXNwEYdu4PLaReOcqjlcP3CdL8YuoPSzu+GfrTYBeus/YTc1G0DcegcUZM1tGtphl TBn+4Nkm64aZcvyR/2Hl2syKSgvuR1p60gc5XtL21PsX0otMTOYDgr34kbV79fxWaHx/ OL6YoE74g0FJnTC44362zV3YKFwlRzY1prkLM8Q8jTdzjcJbPlIbcLBKt9i9CmjJr6Hn 8MDucGd00oiOfb9LV2M0kz5GN5tzCQsri0YlwSRCH89A31QJ6v1BMznZBg2C37m1H0qf sdkkN5cCcuJoDt71t462MTCmxMeMnZDWxL6YQ8dvlivjdHsD+qDlNz0tCxhgvB5m5XN4 gxYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=sHrbCxIl; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si1255518pgv.512.2018.12.21.07.58.14; Fri, 21 Dec 2018 07:58:30 -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; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=sHrbCxIl; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387546AbeLUJgL (ORCPT + 99 others); Fri, 21 Dec 2018 04:36:11 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36979 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731114AbeLUJgL (ORCPT ); Fri, 21 Dec 2018 04:36:11 -0500 Received: by mail-pf1-f193.google.com with SMTP id y126so2350812pfb.4 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=eBlaY8ejWxGmswwAMoMzDiYyyatX1F294AadbDLLQfS3NDftIXD6nI/Yj69w7PhMBh JwyeEmCAYRXhnGvxSd5vv1uPIoWzbSzV95ZQ3sdrF+k/zpQzTrNFwWymJo8Vi4Vs+A2L Ru9qqmyix3FMYivnQeYLSrsKgKRA1TmF2tTX/JbBBaQAK6jM5AfIKgfITq0YnUjVnx9U 3ozbE9gVrNhsdJ9ukHkVd/17hNFDbRBEqdySorC/KP9BT1x+/yXC9bHOSAjZ95XDsr8y HBTOiQNAxVzJOdFGfyz+9w0P9I1KfRHeFQWnUvJ8GiyF55Dijsy2fgJ1cy1ZpPPMt2AQ KlCA== X-Gm-Message-State: AA+aEWaqJYyeC/2Du6fBiIAdNOOsEbafPxR2VGohg0iGasiCW0StmNa0 PkcCMaU+pxRdmUJMovFFCUcX5g== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); } -- 2.11.0