Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1256877pxy; Sun, 15 Aug 2021 15:25:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ6GXXtivTTecll2qEusryRvtRdcco5qVajAiIM/4uQIfKUgpA3eEqKcQVqw3M0094F/VW X-Received: by 2002:aa7:dcc2:: with SMTP id w2mr15820062edu.192.1629066337702; Sun, 15 Aug 2021 15:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629066337; cv=none; d=google.com; s=arc-20160816; b=NJ5aKRAkI/pInFWUWFHacHzQmrSTd/9tIvz4JviiQ7pmvKkdAXbKMOmHxNEG/Lfh5t ZemXzHcXjf7iJIiBoOc+JJVsBp28lvKHyTTfGcAEDon0pwivRxf098BlslX1LnwZuJsn sOHZLPo5olttRxd2luwu1NwZv2/YRv1ICvZK4ym/4s+/1JVmYRZR0Vrxc90YfjD1qLD8 59gMxeqwUCUPk2b3HWWlbPUS/OWYKncCr5HexhmkDpt7fyUEgb6Yxo3Q8kxxRmA926PT cX6iLDu97CDaEh1vmyADLErl0+nBmsxV1m1gVlXhCjOb5Jp+vqBh+2Kt6u+dbfL2E7Ks eQQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pTmqCP6bDwFCjXTWd+UHBKtuuPwOHDbSrKzlepP0BUE=; b=0epZssMhfZa8q6c69G8zI3OI964xUqYLD2IaiUUs2iZpJPIJuZ6mYc+MoBrd93iW4C HR5LQMk0kH/cjVUxZjOIBs+NPdH95HkzKgxqZZrHPeI6hJ8yuosCkzgNLd1YoGvMR7eS f6WYJfJz10Ru1fTpNJN70kMzHbvgcyWQRK7dGaJSdXoRewfW3i7t5j5deqoRKpC6v/93 gdEvHDrvPgUTbutZ5EKNxNFFzUv7ROcE4jt1pWv80XBy1GNCocMlQJ0F+42bMLFSaIGD 9Dn4NzwqybWn5CodyM+/WUO0hsAYc9frtUuDMRpl8peNU+xHNwyZpGMRN74nW13Ld6vH 6pkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=rCc+gnCJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl18si8744758ejc.160.2021.08.15.15.25.14; Sun, 15 Aug 2021 15:25:37 -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=@infradead.org header.s=bombadil.20210309 header.b=rCc+gnCJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231260AbhHOWYL (ORCPT + 99 others); Sun, 15 Aug 2021 18:24:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbhHOWYK (ORCPT ); Sun, 15 Aug 2021 18:24:10 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 462C6C061764 for ; Sun, 15 Aug 2021 15:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=pTmqCP6bDwFCjXTWd+UHBKtuuPwOHDbSrKzlepP0BUE=; b=rCc+gnCJNt6uQBsnSfjHECCJaQ RR2RCy+gM9PIBaLzI6yeTNNaWpVxrHG2KZr8wDCjTivJqG4m3xg1jSgSUNR1nH7zmx9WqbGHxjXpk e2FtzH7M36jJIAE8dAVu6qvAGu59fh5h5yOW4p6ZUVdAtK5oQnultq+Bvr2TAMZeyI1ZMcbfAiDzA D0Qs7FCkRFrdPdPOaIXW7gC6MJ/HmZ6re9xerz+2afIszMMye0b4xki4gcaNH4B7Wvnzv62NeVqdt /6/7KP0QIgKNxc7m7sI2yQSMaW+P0LPnC2wMC5qniRTQFqqEJpegXvRhxYEeB98Pkvv+vOlmRkr9l Szdy269g==; Received: from [2601:1c0:6280:3f0:e65e:37ff:febd:ee53] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFOXX-00Fj6S-CE; Sun, 15 Aug 2021 22:23:35 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , "Chen, Rong A" , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Nicholas Piggin Subject: [PATCH] powerpc/head_check: use stdout for error messages Date: Sun, 15 Aug 2021 15:23:34 -0700 Message-Id: <20210815222334.9575-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Prefer stderr instead of stdout for error messages. This is a good practice and can help CI error detecting and reporting (0day in this case). Signed-off-by: Randy Dunlap Cc: "Chen, Rong A" Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Nicholas Piggin --- arch/powerpc/tools/head_check.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- linux-next-20210813.orig/arch/powerpc/tools/head_check.sh +++ linux-next-20210813/arch/powerpc/tools/head_check.sh @@ -56,9 +56,9 @@ expected_start_head_addr=$vma start_head_addr=$(cat .tmp_symbols.txt | grep " t start_first_256B$" | cut -d' ' -f1) if [ "$start_head_addr" != "$expected_start_head_addr" ]; then - echo "ERROR: head code starts at $start_head_addr, should be $expected_start_head_addr" - echo "ERROR: try to enable LD_HEAD_STUB_CATCH config option" - echo "ERROR: see comments in arch/powerpc/tools/head_check.sh" + echo "ERROR: head code starts at $start_head_addr, should be $expected_start_head_addr" 1>&2 + echo "ERROR: try to enable LD_HEAD_STUB_CATCH config option" 1>&2 + echo "ERROR: see comments in arch/powerpc/tools/head_check.sh" 1>&2 exit 1 fi @@ -70,9 +70,9 @@ expected_start_text_addr=$(cat .tmp_symb start_text_addr=$(cat .tmp_symbols.txt | grep " t start_text$" | cut -d' ' -f1) if [ "$start_text_addr" != "$expected_start_text_addr" ]; then - echo "ERROR: start_text address is $start_text_addr, should be $expected_start_text_addr" - echo "ERROR: try to enable LD_HEAD_STUB_CATCH config option" - echo "ERROR: see comments in arch/powerpc/tools/head_check.sh" + echo "ERROR: start_text address is $start_text_addr, should be $expected_start_text_addr" 1>&2 + echo "ERROR: try to enable LD_HEAD_STUB_CATCH config option" 1>&2 + echo "ERROR: see comments in arch/powerpc/tools/head_check.sh" 1>&2 exit 1 fi