From patchwork Tue Aug 1 16:59:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 708920 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 A1D0EC0015E for ; Tue, 1 Aug 2023 17:00:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233595AbjHARAF (ORCPT ); Tue, 1 Aug 2023 13:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232062AbjHARAF (ORCPT ); Tue, 1 Aug 2023 13:00:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65EF02113; Tue, 1 Aug 2023 10:00:04 -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 011AB615AF; Tue, 1 Aug 2023 17:00:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A4D0C433C8; Tue, 1 Aug 2023 17:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690909203; bh=LCetow/ddKgeNm8NjoibO+WWSXNufUWaMsdcWIJJlI4=; h=From:To:Cc:Subject:Date:From; b=EsH6l2Yok85NKiGdQa7T33Zi2EvugN/drmf5pDY/N7CYwcHQJY+guB0Tn+CjGChbY 0wklxtJOK+20gFg4jR4wPuhIFxRGkdMGKbWUXzP0W0e4lxYhFdmMprnF/hM0tiVZ+G KvqxNn2szRepDHIGjPe1tPWZl6lHbsng/y7mYPhWUXOzaVIEUlADqWhBXms2DkmBwG KFlkc7+k3mRZlf4HLu7F63tgRNIsez1Mcg6/z7wYwqhFs9ij7sLS0AxLinnQdDFQk9 i4Vmayp7DNgYIyQNFgrr652eTfzLNKPPMQ/Aj66ZX+D0z5uU7967ofY4EMtqm1elGx oVgsAnuYM6DuQ== Received: (nullmailer pid 1948307 invoked by uid 1000); Tue, 01 Aug 2023 17:00:02 -0000 From: Rob Herring To: Frank Rowand , "Enrico Weigelt, metux IT consult" Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: unittest: Fix EXPECT for parse_phandle_with_args_map() test Date: Tue, 1 Aug 2023 10:59:48 -0600 Message-Id: <20230801165948.1948053-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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);