Am 2021-01-05 04:17, schrieb Richard Cochran:
On Tue, Jan 05, 2021 at 11:20:09AM +0900, Cliff Spradlin wrote:
This sounds good to me. However, cid2str() uses static storage and
there are several log messages that log information about multiple
ports.
You mean 2+ ports appear in the same pr_xyz() message?
I guess I didn't notice that... ;(
If that is the case, then how about this...
- keep a fixed length character string buffer in the 'struct port'
- update the string as needed (it might need to change with the
bonding -- dunno)
- return a pointer to that string buffer in port2str().
Will that work?
How about custom conversion sepecifiers in the format string?
-michael
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel