forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/nios2/kernel/time.c
....@@ -214,12 +214,12 @@
214214 {
215215 *base = of_iomap(np, 0);
216216 if (!*base) {
217
- pr_crit("Unable to map reg for %s\n", np->name);
217
+ pr_crit("Unable to map reg for %pOFn\n", np);
218218 return -ENXIO;
219219 }
220220
221221 if (of_property_read_u32(np, "clock-frequency", freq)) {
222
- pr_crit("Unable to get %s clock frequency\n", np->name);
222
+ pr_crit("Unable to get %pOFn clock frequency\n", np);
223223 return -EINVAL;
224224 }
225225