Message ID | 150048918187.12895.1688931392526619513.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e698895b4158 |
Headers | show |
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)
If someone turns on libndctl debug they automatically get libdaxctl debug output from the internal library instance. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- ndctl/lib/libndctl.c | 2 ++ 1 file changed, 2 insertions(+)