Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist Mark printflike functions as __prin...
details: https://anonhg.NetBSD.org/src/rev/a43a2d8046a3
branches: trunk
changeset: 343440:a43a2d8046a3
user: roy <roy%NetBSD.org@localhost>
date: Thu Feb 04 15:23:29 2016 +0000
description:
Mark printflike functions as __printflike.
diffstat:
external/cddl/osnet/dist/common/ctf/ctf_decl.c | 2 +-
external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 82ad602d3a8c -r a43a2d8046a3 external/cddl/osnet/dist/common/ctf/ctf_decl.c
--- a/external/cddl/osnet/dist/common/ctf/ctf_decl.c Thu Feb 04 15:04:11 2016 +0000
+++ b/external/cddl/osnet/dist/common/ctf/ctf_decl.c Thu Feb 04 15:23:29 2016 +0000
@@ -171,7 +171,7 @@
}
/*PRINTFLIKE2*/
-void
+void __printflike(2, 3)
ctf_decl_sprintf(ctf_decl_t *cd, const char *format, ...)
{
size_t len = (size_t)(cd->cd_end - cd->cd_ptr);
diff -r 82ad602d3a8c -r a43a2d8046a3 external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c
--- a/external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c Thu Feb 04 15:04:11 2016 +0000
+++ b/external/cddl/osnet/dist/lib/libctf/common/ctf_subr.c Thu Feb 04 15:23:29 2016 +0000
@@ -73,7 +73,7 @@
}
/*PRINTFLIKE1*/
-void
+void __printflike(1, 2)
ctf_dprintf(const char *format, ...)
{
if (_libctf_debug) {
Home |
Main Index |
Thread Index |
Old Index