diff options
-rw-r--r-- | lib/libmuser.c | 2 | ||||
-rw-r--r-- | lib/muser.h | 2 | ||||
-rw-r--r-- | samples/gpio-pci-idio-16.c | 2 | ||||
-rw-r--r-- | samples/null.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/libmuser.c b/lib/libmuser.c index ca821af..0a9a0e9 100644 --- a/lib/libmuser.c +++ b/lib/libmuser.c @@ -335,7 +335,7 @@ lm_log(lm_ctx_t *lm_ctx, lm_log_lvl_t lvl, const char *fmt, ...) va_start(ap, fmt); vsnprintf(buf, sizeof buf, fmt, ap); va_end(ap); - lm_ctx->log(lm_ctx->pvt, buf); + lm_ctx->log(lm_ctx->pvt, lvl, buf); errno = _errno; } diff --git a/lib/muser.h b/lib/muser.h index e4b8a38..3bd5a72 100644 --- a/lib/muser.h +++ b/lib/muser.h @@ -217,7 +217,7 @@ typedef enum { * * @lm_log_fn_t: typedef for log function. */ -typedef void (lm_log_fn_t) (void *pvt, const char *msg); +typedef void (lm_log_fn_t) (void *pvt, lm_log_lvl_t lvl, const char *msg); /** * Callback function that gets called when a capability is accessed. The diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c index 04079af..c5976b7 100644 --- a/samples/gpio-pci-idio-16.c +++ b/samples/gpio-pci-idio-16.c @@ -44,7 +44,7 @@ #include "../lib/muser.h" static void -_log(void *pvt, char const *msg) +_log(void *pvt, lm_log_lvl_t lvl __attribute__((unused)), char const *msg) { fprintf(stderr, "gpio: %s", msg); } diff --git a/samples/null.c b/samples/null.c index db21953..2954da8 100644 --- a/samples/null.c +++ b/samples/null.c @@ -43,7 +43,7 @@ #include "../lib/muser.h" static void -null_log(void *pvt, char const *msg) +null_log(void *pvt, lm_log_lvl_t lvl __attribute__((unused)), char const *msg) { fprintf(stderr, "%s", msg); } |