On Tue, Jan 05, 2021 at 09:15:41AM +0100, Michael Walle wrote:
> How about custom conversion sepecifiers in the format string?

That won't work, because the 'struct port' is opaque.

But we can consider specialized logging wrappers. Intead of

        pr_err("port %d: management forward failed", ...);

we could have

        port_err("management forward failed");

that prefixes the string with "port N (ethX): "

That would take care of many of the messages.

Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to