Skip to content

Commit 0aeae37

Browse files
committed
of: unittest: Fix EXPECT for parse_phandle_with_args_map() test
Commit 12e1724 ("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: 12e1724 ("of: base: improve error msg in of_phandle_iterator_next()") Cc: stable@vger.kernel.org Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20230801-dt-changeset-fixes-v3-1-5f0410e007dd@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent f0362a2 commit 0aeae37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/of/unittest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ static void __init of_unittest_parse_phandle_with_args_map(void)
664664
memset(&args, 0, sizeof(args));
665665

666666
EXPECT_BEGIN(KERN_INFO,
667-
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle");
667+
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle 12345678");
668668

669669
rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-phandle",
670670
"phandle", 0, &args);
671671
EXPECT_END(KERN_INFO,
672-
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle");
672+
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle 12345678");
673673

674674
unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc);
675675

0 commit comments

Comments
 (0)