mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
of/unittest: add printf tests for node name
Add some printf test for printing the node name (without the unit-address). Reviewed-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
b610e2ff46
commit
6901378c79
@ -299,6 +299,10 @@ static void __init of_unittest_printf(void)
|
||||
|
||||
of_unittest_printf_one(np, "%pOF", full_name);
|
||||
of_unittest_printf_one(np, "%pOFf", full_name);
|
||||
of_unittest_printf_one(np, "%pOFn", "dev");
|
||||
of_unittest_printf_one(np, "%2pOFn", "dev");
|
||||
of_unittest_printf_one(np, "%5pOFn", " dev");
|
||||
of_unittest_printf_one(np, "%pOFnc", "dev:test-sub-device");
|
||||
of_unittest_printf_one(np, "%pOFp", phandle_str);
|
||||
of_unittest_printf_one(np, "%pOFP", "dev@100");
|
||||
of_unittest_printf_one(np, "ABC %pOFP ABC", "ABC dev@100 ABC");
|
||||
|
Loading…
x
Reference in New Issue
Block a user