The _tep_register_function()_ function registers a function name mapped to an
 address and (optional) module. This mapping is used in case the function tracer
-or events have "%pF" or "%pS" parameter in its format string. It is common to
-pass in the kallsyms function names with their corresponding addresses with this
+or events have "%pS" parameter in its format string. It is common to pass in
+the kallsyms function names with their corresponding addresses with this
 function. The _tep_ argument is the trace event parser context. The _name_ is
-the name of the function, the string is copied internally. The _addr_ is
-the start address of the function. The _mod_ is the kernel module
-the function may be in (NULL for none).
+the name of the function, the string is copied internally. The _addr_ is the
+start address of the function. The _mod_ is the kernel module the function may
+be in (NULL for none).
 
 The _tep_register_print_string()_ function  registers a string by the address
 it was stored in the kernel. Some strings internal to the kernel with static
 
                                        switch (*ptr) {
                                        case 's':
                                        case 'S':
-                                       case 'f':
-                                       case 'F':
                                        case 'x':
                                                break;
+                                       case 'f':
+                                       case 'F':
+                                               /*
+                                                * Pre-5.5 kernels use %pf and
+                                                * %pF for printing symbols
+                                                * while kernels since 5.5 use
+                                                * %pfw for fwnodes. So check
+                                                * %p[fF] isn't followed by 'w'.
+                                                */
+                                               if (ptr[1] != 'w')
+                                                       break;
+                                               /* fall through */
                                        default:
                                                /*
                                                 * Older kernels do not process
 
        printk = find_printk(tep, addr);
        if (!printk) {
-               if (asprintf(&format, "%%pf: (NO FORMAT FOUND at %llx)\n", addr) < 0)
+               if (asprintf(&format, "%%ps: (NO FORMAT FOUND at %llx)\n", addr) < 0)
                        return NULL;
                return format;
        }
 
-       if (asprintf(&format, "%s: %s", "%pf", printk->printk) < 0)
+       if (asprintf(&format, "%s: %s", "%ps", printk->printk) < 0)
                return NULL;
 
        return format;