> +static size_t info_print_caller_id(char *buf, size_t size, > + const struct printk_caller *caller) { > + enum printk_caller_ctx ctx; > + > + ctx = printk_to_caller_ctx(caller->cpu_ctx); > + > + if (ctx == printk_ctx_task) > + return snprintf(buf, size, "T%u", caller->pid); > + > + return snprintf(buf, size, "C%u", > +printk_to_caller_cpu(caller->cpu_ctx)); > +} > +
When I apply and test this patch, there is no change of print format compared with previous PRINTK_CALLER. The patch that I made is always to print the CPU ID and process name together.