librefuse: default_log_func is __printflike

This commit is contained in:
tnn 2022-01-29 00:03:41 +00:00
parent a23f7dc35e
commit 64af69d8bc
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: refuse_log.c,v 1.1 2022/01/22 07:39:22 pho Exp $ */ /* $NetBSD: refuse_log.c,v 1.2 2022/01/29 00:03:41 tnn Exp $ */
/* /*
* Copyright (c) 2021 The NetBSD Foundation, Inc. * Copyright (c) 2021 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if !defined(lint) #if !defined(lint)
__RCSID("$NetBSD: refuse_log.c,v 1.1 2022/01/22 07:39:22 pho Exp $"); __RCSID("$NetBSD: refuse_log.c,v 1.2 2022/01/29 00:03:41 tnn Exp $");
#endif /* !lint */ #endif /* !lint */
#include <assert.h> #include <assert.h>
@ -41,7 +41,7 @@ __RCSID("$NetBSD: refuse_log.c,v 1.1 2022/01/22 07:39:22 pho Exp $");
#endif #endif
#include <stdio.h> #include <stdio.h>
static void static void __printflike(2, 0)
default_log_func(enum fuse_log_level level __attribute__((__unused__)), default_log_func(enum fuse_log_level level __attribute__((__unused__)),
const char *fmt, va_list ap) { const char *fmt, va_list ap) {
/* This function needs to be thread-safe. Calling vfprintf(3) /* This function needs to be thread-safe. Calling vfprintf(3)