On Mon, 2023-07-10 at 10:53 +0000, Zhijian Li (Fujitsu) wrote: > > > > > > log_init(&monitor.ctx, "cxl/monitor", > > > "CXL_MONITOR_LOG"); > > > - monitor.ctx.log_fn = log_standard; > > > + if (monitor.log) > > > + log = monitor.log; > > > + else > > > + log = monitor.daemon ? default_log : > > > "./standard"; > > > > I think the original './standard' was used that way because > > fix_filename() added the './' prefix. > > At present, './' will still be added by parse_options_prefix() at the > beginning. > Ah yes I missed this - I must've confused my test attempts - you're right, 'standard' behaves as expected (stdout) and './standard also works as expected (creates a file called standard in the cwd).
- [ndctl PATCH v3 2/6] cxl/monitor: replace monitor.log... Li Zhijian
- [ndctl PATCH v3 3/6] cxl/monitor: use strcmp to compa... Li Zhijian
- Re: [ndctl PATCH v3 3/6] cxl/monitor: use strcmp... Dave Jiang
- Re: [ndctl PATCH v3 3/6] cxl/monitor: use strcmp... Verma, Vishal L
- Re: [ndctl PATCH v3 3/6] cxl/monitor: use st... Zhijian Li (Fujitsu)
- [ndctl PATCH v3 1/6] cxl/monitor: Enable default_log ... Li Zhijian
- Re: [ndctl PATCH v3 1/6] cxl/monitor: Enable def... Dave Jiang
- Re: [ndctl PATCH v3 1/6] cxl/monitor: Enable def... Verma, Vishal L
- Re: [ndctl PATCH v3 1/6] cxl/monitor: Enable... Zhijian Li (Fujitsu)
- Re: [ndctl PATCH v3 1/6] cxl/monitor: En... Verma, Vishal L
- [ndctl PATCH v3 4/6] cxl/monitor: always log started ... Li Zhijian
- Re: [ndctl PATCH v3 4/6] cxl/monitor: always log... Dave Jiang
- Re: [ndctl PATCH v3 4/6] cxl/monitor: always log... Verma, Vishal L
- Re: [ndctl PATCH v3 4/6] cxl/monitor: always... Zhijian Li (Fujitsu)
- [ndctl PATCH v3 5/6] Documentation/cxl/cxl-monitor.tx... Li Zhijian
- Re: [ndctl PATCH v3 0/6] cxl/monitor and ndctl/monito... Zhijian Li (Fujitsu)
- Re: [ndctl PATCH v3 0/6] cxl/monitor and ndctl/m... Verma, Vishal L
- Re: [ndctl PATCH v3 0/6] cxl/monitor and ndctl/monito... Alison Schofield
- Re: [ndctl PATCH v3 0/6] cxl/monitor and ndctl/m... Zhijian Li (Fujitsu)
