ndctl, monitor: fix the sevrity of "daemon started" message
PATCH 1/1 ndctl, monitor: fix the sevrity of "daemon started" message
The "daemon started" message was printed as an error and this is improper. This patch is used to chang it to info() meanwhile to chang the default log level of monitor to "LOG_INFO".
Signed-off-by QI Fuli <[email protected]>
--- ndctl/monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
ndctl/monitor.c +2 -2
@@ -628,7 +628,7 @@ int cmd_monitor(int argc, const char **argv, void *ctx)if (monitor.verbose)ndctl_set_log_priority ((struct ndctl_ctx *)ctx,LOG_DEBUG );else -ndctl_set_log_priority ((struct ndctl_ctx *)ctx,LOG_NOTICE ); +ndctl_set_log_priority ((struct ndctl_ctx *)ctx,LOG_INFO ); rc =read_config_file ((struct ndctl_ctx *)ctx, &monitor, ¶m);if (rc)
@@ -660,7 +660,7 @@ int cmd_monitor(int argc, const char **argv, void *ctx)err ((struct ndctl_ctx *)ctx,"daemon start failed\n" ); goto out; } -err ((struct ndctl_ctx *)ctx,"ndctl monitor daemon started\n" ); +info ((struct ndctl_ctx *)ctx,"ndctl monitor daemon started\n" ); }if (parse_monitor_event (&monitor, (struct ndctl_ctx *)ctx))
Signature · 7 lines
2.19.0.rc0 _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
Verma, Vishal L
maintainerQuoted 8 lines · QI Fuli
The "daemon started" message was printed as an error and this is improper. This patch is used to chang it to
info()meanwhile to chang the default log level of monitor to "LOG_INFO".Signed-off-by QI Fuli <[email protected]>--- ndctl/monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks Qi! Applied.
Quoted 15 lines
ndctl/monitor.c +1
-1@@ -628,7 +628,7 @@ int cmd_monitor(int argc, const char **argv, void *ctx)if (monitor.verbose)ndctl_set_log_priority ((struct ndctl_ctx *)ctx,LOG_DEBUG );else -ndctl_set_log_priority ((struct ndctl_ctx *)ctx,LOG_NOTICE ); +ndctl_set_log_priority ((struct ndctl_ctx *)ctx,LOG_INFO ); rc =read_config_file ((struct ndctl_ctx *)ctx, &monitor, ¶m);if (rc)
ndctl/monitor.c int cmd_monitor(int argc, const char **argv, void *ctx) · line 666
Quoted 8 lines
ndctl/monitor.c +1
-1@@ -660,7 +660,7 @@ int cmd_monitor(int argc, const char **argv, void *ctx)err ((struct ndctl_ctx *)ctx,"daemon start failed\n" ); goto out; } -err ((struct ndctl_ctx *)ctx,"ndctl monitor daemon started\n" ); +info ((struct ndctl_ctx *)ctx,"ndctl monitor daemon started\n" ); }if (parse_monitor_event (&monitor, (struct ndctl_ctx *)ctx))
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm