From patchwork Fri Aug 4 22:41:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 710350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E916DC04E69 for ; Fri, 4 Aug 2023 22:42:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbjHDWmT (ORCPT ); Fri, 4 Aug 2023 18:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbjHDWmS (ORCPT ); Fri, 4 Aug 2023 18:42:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F0F74EE1; Fri, 4 Aug 2023 15:42:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 263296215B; Fri, 4 Aug 2023 22:42:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E057AC433C7; Fri, 4 Aug 2023 22:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691188936; bh=B054y3pqR16hOaTgxhtMZYYzfM1FPP+fTzP45gff++8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NcvEkl0jGpzfdsz6rc52Cj9eN+IhnnRBs69A4mGOw3PBCoGc1UbxBGAqxfr4xUD0r 8oe6/RGXNiBFiE+JC3PbumsPgO/eJAgvRET0trwoBICaSzpJNwQzFp+2Mja5ckJGCB +cwv9Og101zLRjajmXBHK8DmIYv13BbgygMPjyLIPFp7ThjLKEb6LP104Z152E3qt9 8bpgjgXPgoIwvBuFidAawZZIlv6vdnFrvU/caxg9Ifp7k2z12RjXSufXOpXXzQt/N+ b79e76OHavtRGucoOa4gv2EAZKhKBK9srKcS2CmcCzfp3Gyo5cjXORuq6Sn0VhoAz3 Z7kElAKBZy9Og== Received: (nullmailer pid 2346975 invoked by uid 1000); Fri, 04 Aug 2023 22:42:09 -0000 From: Rob Herring Date: Fri, 04 Aug 2023 16:41:51 -0600 Subject: [PATCH v2 1/6] of: unittest: Fix EXPECT for parse_phandle_with_args_map() test MIME-Version: 1.0 Message-Id: <20230801-dt-changeset-fixes-v2-1-c2b701579dee@kernel.org> References: <20230801-dt-changeset-fixes-v2-0-c2b701579dee@kernel.org> In-Reply-To: <20230801-dt-changeset-fixes-v2-0-c2b701579dee@kernel.org> To: Frank Rowand , "Enrico Weigelt, metux IT consult" , "Rafael J. Wysocki" , Sakari Ailus , Petr Mladek , Andy Shevchenko , Geert Uytterhoeven Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.13-dev Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Commit 12e17243d8a1 ("of: base: improve error msg in of_phandle_iterator_next()") added printing of the phandle value on error, but failed to update the unittest. Fixes: 12e17243d8a1 ("of: base: improve error msg in of_phandle_iterator_next()") Signed-off-by: Rob Herring --- drivers/of/unittest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index e5b0eea8011c..d943bf87c94d 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -664,12 +664,12 @@ static void __init of_unittest_parse_phandle_with_args_map(void) memset(&args, 0, sizeof(args)); EXPECT_BEGIN(KERN_INFO, - "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"); + "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle 12345678"); rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-phandle", "phandle", 0, &args); EXPECT_END(KERN_INFO, - "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"); + "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle 12345678"); unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc);