Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4749346pxb; Tue, 28 Sep 2021 03:16:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt6UfgyIgdNEI9dIBx/vMbSi9Tf9mXHkgu5RudXx67p+PAxv2x8nyzzt1uHqyTc1runKT/ X-Received: by 2002:a17:90a:12:: with SMTP id 18mr4633060pja.104.1632824177141; Tue, 28 Sep 2021 03:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632824177; cv=none; d=google.com; s=arc-20160816; b=p31JskovwH7cxW1+lYhOTyV6qKjDMz3j1cVednz5Za/+QPlxlNfyv1Nk9Vvj8xprBK 2CAmxyGloCGk/W3EZrQTgL58rV/RloZms+aa1Nwg0z0a/oYtgTrACArABqZCwWBQBmli zpmz1aDrQPNtHdlR1PIa1Y/RbLEF+UrbS3yJowQIIPpyp0AEBnVhqI4xlfj74+5js3yZ at53lYWkNoojnRvp0XJ1AlTmvO/D1FzGmGAEYu2XNTabaCr8WYeVdLy1KAWdSNr8+tsY zBzHR4IAWrDj7RA1lkpXJ9a6eeniLNSEQsHSMLFRGUDWfJR5DQ7cR3Df9+LYiaEukJdW gl4A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5rt8QiRGAJDlqM0FvjHx7HzYS88TW8/VsFFGXusfaN4=; b=qDh1oFu+zuM+yTGysocSB9hawfOnzeufjbddwsOyFkCYeLVyU86PbAQXBmJTKqHcqY VGPX+k0DfhHo5H7qwre0XdS/nNOxY9oYRH8dSOZmOLr3moN+blZRfmxBkxyKblKMM95U Pn/WbD3lBuqAvr2S/GgH7NCSEBiafLZy5dIdwLSAPhUkiTAmWMqAu5miGYjK+tuNfELw 60VZzphGIUrITPP8SbGozcB+GSV4QpmeFGp/3eWPtWA4/MJodKNEDAJAxjOmS8aVGy08 GLa19hpCMnxRF/E1PBJ/jfn+xIdsiyEQTy+JSOhsp5n1m6v5XQSr46igh6ciM+8Av0yy 3zrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rQehcW3j; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si23179910plo.223.2021.09.28.03.16.04; Tue, 28 Sep 2021 03:16:17 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=rQehcW3j; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240167AbhI1KP4 (ORCPT + 99 others); Tue, 28 Sep 2021 06:15:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:39364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240056AbhI1KPt (ORCPT ); Tue, 28 Sep 2021 06:15:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6317961131; Tue, 28 Sep 2021 10:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632824050; bh=jPT23extS7U6noHN1SJAl9hzNfhvGqmZrrjilelIp+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rQehcW3jUepwlgxiKYKPj4K58IMqo/1AtnaQTP+h855aN7RTQEmSPfy3eezbLCl+/ ldUGQ45A8PqlPoDAeb4CKPfW3kx3P+1LpCVEZqdABPgxTETYWtSJXnNY2usGegM8O+ U9mSCqHzvpeZ1T4rBGJpLoWK291p6QY2y1a0zCJkPo99d4wtXzCKbVCYyMSJV4MAT1 qjqKiXuabAOZU/bMVxRaJbzRKZkmc9+4va/yVHM7L1EplF9QMCNTnVPcKIEncldP6s x+/zB8sdArGR30+0kvYvsiujcfhuLg/8ic5JOaQ9qGmPOyfWASNmpm026M3NHkxk2f 50y6Lz0eHeriw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mVA7k-000Thy-Db; Tue, 28 Sep 2021 12:14:08 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] scripts: get_abi.pl: use STDERR for search-string and show-hints Date: Tue, 28 Sep 2021 12:14:02 +0200 Message-Id: <51c6a39c82f73b441030c51bf905a1f382452a67.1632823172.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On undefined checks, use STDOUT only for the not found entries. All other data (search-string and show-hints) is printed at STDERR. Signed-off-by: Mauro Carvalho Chehab --- To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/3] at: https://lore.kernel.org/all/cover.1632823172.git.mchehab+huawei@kernel.org/ scripts/get_abi.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 4978163f5b16..a6c91f822363 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -728,9 +728,9 @@ sub check_undefined_symbols { for (my $i = 0; $i < @names; $i++) { if ($found_string && $hint) { if (!$i) { - print "--> $names[$i]\n"; + print STDERR "--> $names[$i]\n"; } else { - print " $names[$i]\n"; + print STDERR " $names[$i]\n"; } } foreach my $re (@expr) { @@ -760,17 +760,17 @@ sub check_undefined_symbols { } next if ($exact); + print "$file not found.\n" if (!$search_string || $found_string); + if ($hint && (!$search_string || $found_string)) { my $what = $leaf{$leave}->{what}; $what =~ s/\xac/\n\t/g; if ($leave ne "others") { - print " more likely regexes:\n\t$what\n"; + print STDERR " more likely regexes:\n\t$what\n"; } else { - print " tested regexes:\n\t$what\n"; + print STDERR " tested regexes:\n\t$what\n"; } - next; } - print "$file not found.\n" if (!$search_string || $found_string); } } @@ -852,7 +852,7 @@ sub undefined_symbols { } } if ($search_string && $added) { - print "What: $what\n" if ($what =~ m#$search_string#); + print STDERR "What: $what\n" if ($what =~ m#$search_string#); } } -- 2.31.1