diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2023-01-18 12:11:51 +0000 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2023-02-16 18:15:08 +0000 |
commit | e0dc2631ec4ac718ebe22ddea0ab25524eb37b0e (patch) | |
tree | 0121bd6c8d29247933112f92b7ae059f5780d883 /tools/virtiofsd/fuse_log.c | |
parent | 8ab5e8a503b55eb27672777cfedea902bb22a246 (diff) |
virtiofsd: Remove source
Now remove all the source.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tools/virtiofsd/fuse_log.c')
-rw-r--r-- | tools/virtiofsd/fuse_log.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/tools/virtiofsd/fuse_log.c b/tools/virtiofsd/fuse_log.c deleted file mode 100644 index 2de3f48ee7..0000000000 --- a/tools/virtiofsd/fuse_log.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * FUSE: Filesystem in Userspace - * Copyright (C) 2019 Red Hat, Inc. - * - * Logging API. - * - * This program can be distributed under the terms of the GNU LGPLv2. - * See the file COPYING.LIB - */ - -#include "qemu/osdep.h" -#include "fuse_log.h" - - -G_GNUC_PRINTF(2, 0) -static void default_log_func(__attribute__((unused)) enum fuse_log_level level, - const char *fmt, va_list ap) -{ - vfprintf(stderr, fmt, ap); -} - -static fuse_log_func_t log_func = default_log_func; - -void fuse_set_log_func(fuse_log_func_t func) -{ - if (!func) { - func = default_log_func; - } - - log_func = func; -} - -void fuse_log(enum fuse_log_level level, const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - log_func(level, fmt, ap); - va_end(ap); -} |