Skip to content

Commit 5f4216f

Browse files
robherringwildea01
authored andcommitted
perf: 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 <[email protected]> Cc: Will Deacon <[email protected]> Cc: Mark Rutland <[email protected]> Cc: [email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent a270f32 commit 5f4216f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/perf/arm_pmu_platform.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ static int pmu_parse_irqs(struct arm_pmu *pmu)
131131
}
132132

133133
if (!pmu_has_irq_affinity(pdev->dev.of_node)) {
134-
pr_warn("no interrupt-affinity property for %s, guessing.\n",
135-
of_node_full_name(pdev->dev.of_node));
134+
pr_warn("no interrupt-affinity property for %pOF, guessing.\n",
135+
pdev->dev.of_node);
136136
}
137137

138138
/*
@@ -211,7 +211,7 @@ int arm_pmu_device_probe(struct platform_device *pdev,
211211
}
212212

213213
if (ret) {
214-
pr_info("%s: failed to probe PMU!\n", of_node_full_name(node));
214+
pr_info("%pOF: failed to probe PMU!\n", node);
215215
goto out_free;
216216
}
217217

@@ -228,8 +228,7 @@ int arm_pmu_device_probe(struct platform_device *pdev,
228228
out_free_irqs:
229229
armpmu_free_irqs(pmu);
230230
out_free:
231-
pr_info("%s: failed to register PMU devices!\n",
232-
of_node_full_name(node));
231+
pr_info("%pOF: failed to register PMU devices!\n", node);
233232
armpmu_free(pmu);
234233
return ret;
235234
}

0 commit comments

Comments
 (0)