Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

base: Convert to using %pOF instead of full_name

Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Herring and committed by
Greg Kroah-Hartman
6ef2541f 39bf04db

+4 -4
+4 -4
drivers/base/arch_topology.c
··· 150 150 } 151 151 capacity_scale = max(cpu_capacity, capacity_scale); 152 152 raw_capacity[cpu] = cpu_capacity; 153 - pr_debug("cpu_capacity: %s cpu_capacity=%u (raw)\n", 154 - cpu_node->full_name, raw_capacity[cpu]); 153 + pr_debug("cpu_capacity: %pOF cpu_capacity=%u (raw)\n", 154 + cpu_node, raw_capacity[cpu]); 155 155 } else { 156 156 if (raw_capacity) { 157 - pr_err("cpu_capacity: missing %s raw capacity\n", 158 - cpu_node->full_name); 157 + pr_err("cpu_capacity: missing %pOF raw capacity\n", 158 + cpu_node); 159 159 pr_err("cpu_capacity: partial information: fallback to 1024 for all CPUs\n"); 160 160 } 161 161 cap_parsing_failed = true;