Re: [Linuxptp-devel] [PATCH v2 2/3] clock: dump unexpected packets received on the error queues of
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Jacob K. <jac...@in...> - 2020-06-18 20:02:48
|
On 6/18/2020 12:56 PM, Vladimir Oltean wrote: >> Could this use the pr facility, so that it honors the printing options >> to log to syslog and manages the level? >> >> I'm not sure what I would mark these as: debug because they no longer >> impact the syncing process, or true error because they are unexpected? >> >> Thanks, >> Jake >> > > Thanks a lot for looking at this. > Good point about redirecting to syslog, I did not think about that. > The reason why I did not use pr_err was due to the automatic line > ending, which would have unnecessarily complicated this function by > having me print each line of the packet to a temporary buffer first. > But now that I see there's no way around it, I guess I'll have to do > that. What about implementing this as part of pr.c? Thanks, Jake |