dmmp_context_log_func_set(3)

dmmp_context_log_func_set3

Set log handler function.

Usage

void dmmp_context_log_func_set (struct dmmp_context *ctx, void (*log_func) (struct dmmp_context *ctx, int priority, const char *file, int line, const char *func_name, const char *format, va_list args));

Arguments

ctx

Pointer of 'struct dmmp_context'. If this pointer is NULL, your program will be terminated by assert.

log_func

Pointer of log handler function. If set to NULL, all log will be ignored.

Overview

Set custom log handler. The log handler will be invoked when log message is equal or more important(less value) than log priority setting. Please check manpage libdmmp.h(3) for detail usage.

Return

void

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. Arch

From multipath-tools 0.15.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.