aboutsummaryrefslogtreecommitdiff
path: root/samples/gpio-pci-idio-16.c
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-07-06 09:35:49 -0400
committerThanos Makatos <thanos.makatos@nutanix.com>2020-07-06 09:35:49 -0400
commita7568d0dee925955f484bb821ac5a4bdab6db68a (patch)
treed928d623ae18fc5a2b7c258406d002206eae2f0a /samples/gpio-pci-idio-16.c
parentea443b0b2aef92b82db5e38119a87c64e756bcfe (diff)
downloadlibvfio-user-a7568d0dee925955f484bb821ac5a4bdab6db68a.zip
libvfio-user-a7568d0dee925955f484bb821ac5a4bdab6db68a.tar.gz
libvfio-user-a7568d0dee925955f484bb821ac5a4bdab6db68a.tar.bz2
pass log level to log function
This is useful when using another log function from the log function callback. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples/gpio-pci-idio-16.c')
-rw-r--r--samples/gpio-pci-idio-16.c2
1 files changed, 1 insertions, 1 deletions
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);
}