Source-Changes-HG archive

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

[src/trunk]: src/tests/kernel add printf attribute



details:   https://anonhg.NetBSD.org/src/rev/bccae83cfc35
branches:  trunk
changeset: 999133:bccae83cfc35
user:      christos <christos%NetBSD.org@localhost>
date:      Tue May 21 04:09:46 2019 +0000

description:
add printf attribute

diffstat:

 tests/kernel/gen_t_subr_prf |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (14 lines):

diff -r bfc125e3845f -r bccae83cfc35 tests/kernel/gen_t_subr_prf
--- a/tests/kernel/gen_t_subr_prf       Tue May 21 03:46:45 2019 +0000
+++ b/tests/kernel/gen_t_subr_prf       Tue May 21 04:09:46 2019 +0000
@@ -122,9 +122,7 @@
         atf_tc_set_md_var(tc, "descr", "checks vasprintf works");
 }
 
-int vasp_helper(char **, const char *, ...);
-
-int
+static int __printflike(2, 3)
 vasp_helper(char **buf, const char *fmt, ...)
 {
        va_list ap;



Home | Main Index | Thread Index | Old Index