If someone turns on libndctl debug they automatically get libdaxctl debug output from the internal library instance.
Signed-off-by: Dan Williams <[email protected]> --- ndctl/lib/libndctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c index 6607b68d4dd2..68d806444589 100644 --- a/ndctl/lib/libndctl.c +++ b/ndctl/lib/libndctl.c @@ -704,6 +704,8 @@ NDCTL_EXPORT int ndctl_get_log_priority(struct ndctl_ctx *ctx) NDCTL_EXPORT void ndctl_set_log_priority(struct ndctl_ctx *ctx, int priority) { ctx->ctx.log_priority = priority; + /* forward the debug level to our internal libdaxctl instance */ + daxctl_set_log_priority(ctx->daxctl_ctx, priority); } static char *__dev_path(char *type, int major, int minor, int parent) _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
