Re: [PATCH v3] log: add timestamp for log

2023-03-06 Thread Stephen Hemminger
On Mon, 6 Mar 2023 13:00:17 -0800 Tyler Retzlaff wrote: > On Sat, Mar 04, 2023 at 08:04:41AM -0800, Stephen Hemminger wrote: > > On Sat, 4 Mar 2023 16:14:21 +0800 > > luzhipeng wrote: > > > > > From: Zhipeng Lu > > > > > > add timestamp for log > > > > > > Signed-off-by: Zhipeng Lu > >

Re: [PATCH v3] log: add timestamp for log

2023-03-06 Thread Tyler Retzlaff
On Sat, Mar 04, 2023 at 08:04:41AM -0800, Stephen Hemminger wrote: > On Sat, 4 Mar 2023 16:14:21 +0800 > luzhipeng wrote: > > > From: Zhipeng Lu > > > > add timestamp for log > > > > Signed-off-by: Zhipeng Lu > > Good idea but: > - it needs to be optional > - timestamp only makes sense

Re: [PATCH v3] log: add timestamp for log

2023-03-04 Thread Stephen Hemminger
On Sat, 4 Mar 2023 16:14:21 +0800 luzhipeng wrote: > From: Zhipeng Lu > > add timestamp for log > > Signed-off-by: Zhipeng Lu Good idea but: - it needs to be optional - timestamp only makes sense on the terminal (stdout) log stream syslog/journal already have timestamp I did a sim

[PATCH v3] log: add timestamp for log

2023-03-04 Thread luzhipeng
From: Zhipeng Lu add timestamp for log Signed-off-by: Zhipeng Lu --- lib/eal/common/eal_common_log.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common_log.c index bd7b188ceb..46dbd4b7bf 1006