Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librefuse librefuse: default_log_func is __printflike



details:   https://anonhg.NetBSD.org/src/rev/df7a87d77990
branches:  trunk
changeset: 359866:df7a87d77990
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Jan 29 00:03:41 2022 +0000

description:
librefuse: default_log_func is __printflike

diffstat:

 lib/librefuse/refuse_log.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 438bee35fe14 -r df7a87d77990 lib/librefuse/refuse_log.c
--- a/lib/librefuse/refuse_log.c        Fri Jan 28 20:00:52 2022 +0000
+++ b/lib/librefuse/refuse_log.c        Sat Jan 29 00:03:41 2022 +0000
@@ -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.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #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 */
 
 #include <assert.h>
@@ -41,7 +41,7 @@
 #endif
 #include <stdio.h>
 
-static void
+static void  __printflike(2, 0)
 default_log_func(enum fuse_log_level level __attribute__((__unused__)),
                  const char *fmt, va_list ap) {
     /* This function needs to be thread-safe. Calling vfprintf(3)



Home | Main Index | Thread Index | Old Index