From a7568d0dee925955f484bb821ac5a4bdab6db68a Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Mon, 6 Jul 2020 09:35:49 -0400 Subject: pass log level to log function This is useful when using another log function from the log function callback. Signed-off-by: Thanos Makatos --- samples/gpio-pci-idio-16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples/gpio-pci-idio-16.c') 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); } -- cgit v1.1