summaryrefslogtreecommitdiff
path: root/libexec/ld.elf_so/debug.h
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1999-01-10 17:19:01 +0000
committerchristos <christos@NetBSD.org>1999-01-10 17:19:01 +0000
commitab951f38e05bdc8b643cded7f2d148c9dc9cab90 (patch)
treed6c72360dcf7b461bfc169186f003bc28198b007 /libexec/ld.elf_so/debug.h
parentc77a99ad05676a8f6abf7d5a1f1d0fd3922ac3ca (diff)
Add __attribute__ for printf like commands.
Diffstat (limited to 'libexec/ld.elf_so/debug.h')
-rw-r--r--libexec/ld.elf_so/debug.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/libexec/ld.elf_so/debug.h b/libexec/ld.elf_so/debug.h
index 4c1db55c113..6c73d526f1f 100644
--- a/libexec/ld.elf_so/debug.h
+++ b/libexec/ld.elf_so/debug.h
@@ -1,4 +1,4 @@
-/* $NetBSD: debug.h,v 1.1 1996/12/16 20:37:57 cgd Exp $ */
+/* $NetBSD: debug.h,v 1.2 1999/01/10 17:19:01 christos Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -42,9 +42,12 @@
#error "Sorry, this module relies on some GNU extensions"
#endif /* } */
-extern void xprintf(const char *fmt, ...);
-extern void xvprintf(const char *fmt, va_list ap);
-extern void debug_printf(const char *, ...);
+extern void xprintf(const char *fmt, ...)
+ __attribute__((__format__(__printf__, 1, 2)));
+extern void xvprintf(const char *fmt, va_list ap)
+ __attribute__((__format__(__printf__, 1, 0)));
+extern void debug_printf(const char *, ...)
+ __attribute__((__format__(__printf__, 1, 2)));
extern int debug;
#ifdef DEBUG /* { */