From ddf444e8da02e0c8796944e2484cd0ca91a0105d Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Wed, 2 Dec 2020 05:31:52 -0500 Subject: use log level defines from syslog Signed-off-by: Thanos Makatos --- samples/null.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samples/null.c') diff --git a/samples/null.c b/samples/null.c index adf3a46..fda260e 100644 --- a/samples/null.c +++ b/samples/null.c @@ -43,7 +43,7 @@ #include "tran_sock.h" static void -null_log(UNUSED void *pvt, UNUSED vfu_log_lvl_t lvl, char const *msg) +null_log(UNUSED void *pvt, UNUSED int level, char const *msg) { fprintf(stderr, "null: %s", msg); } @@ -86,7 +86,7 @@ int main(int argc, char **argv) err(EXIT_FAILURE, "failed to create libvfio-user context"); } - ret = vfu_setup_log(vfu_ctx, null_log, VFU_DBG); + ret = vfu_setup_log(vfu_ctx, null_log, LOG_DEBUG); if (ret < 0) { err(EXIT_FAILURE, "failed to setup log"); } -- cgit v1.1