diff options
author | Rob Herring <robh@kernel.org> | 2023-08-18 22:40:56 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-08-21 16:23:38 +0200 |
commit | 0aeae3788e28f64ccb95405d4dc8cd80637ffaea (patch) | |
tree | 2e6ef90c6b1af5d2aec322f21670e7a15f3a03bf /drivers/of | |
parent | mm,ima,kexec,of: use memblock_free_late from ima_free_kexec_buffer (diff) | |
download | linux-0aeae3788e28f64ccb95405d4dc8cd80637ffaea.tar.xz linux-0aeae3788e28f64ccb95405d4dc8cd80637ffaea.zip |
of: unittest: Fix EXPECT for parse_phandle_with_args_map() test
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()")
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>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/unittest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index a406a12eb208..b545fcb22536 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); |