Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ddb add __printflike where needed
details: https://anonhg.NetBSD.org/src/rev/2aff621225ba
branches: trunk
changeset: 773622:2aff621225ba
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 10 02:14:23 2012 +0000
description:
add __printflike where needed
diffstat:
sys/ddb/db_interface.h | 4 ++--
sys/ddb/db_lwp.h | 5 +++--
sys/ddb/db_output.h | 5 ++---
sys/ddb/db_sym.h | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diffs (72 lines):
diff -r 4404cb66339e -r 2aff621225ba sys/ddb/db_interface.h
--- a/sys/ddb/db_interface.h Fri Feb 10 02:14:04 2012 +0000
+++ b/sys/ddb/db_interface.h Fri Feb 10 02:14:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.h,v 1.27 2011/05/26 15:34:14 joerg Exp $ */
+/* $NetBSD: db_interface.h,v 1.28 2012/02/10 02:14:23 christos Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
/* arch/<arch>/<arch>/db_trace.c */
/* arch/vax/vax/db_machdep.c */
void db_stack_trace_print(db_expr_t, bool, db_expr_t, const char *,
- void (*)(const char *, ...));
+ void (*)(const char *, ...) __printflike(1, 2));
/* ddb/db_xxx.c */
void db_kgdb_cmd(db_expr_t, bool, db_expr_t, const char *);
diff -r 4404cb66339e -r 2aff621225ba sys/ddb/db_lwp.h
--- a/sys/ddb/db_lwp.h Fri Feb 10 02:14:04 2012 +0000
+++ b/sys/ddb/db_lwp.h Fri Feb 10 02:14:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_lwp.h,v 1.1 2009/03/07 22:02:17 ad Exp $ */
+/* $NetBSD: db_lwp.h,v 1.2 2012/02/10 02:14:23 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -34,6 +34,7 @@
struct lwp *db_lwp_first(void);
struct lwp *db_lwp_next(struct lwp *);
-void db_lwp_whatis(uintptr_t, void (*)(const char *, ...));
+void db_lwp_whatis(uintptr_t,
+ void (*)(const char *, ...) __printflike(1, 2));
#endif /* _DDB_DB_LWP_H_ */
diff -r 4404cb66339e -r 2aff621225ba sys/ddb/db_output.h
--- a/sys/ddb/db_output.h Fri Feb 10 02:14:04 2012 +0000
+++ b/sys/ddb/db_output.h Fri Feb 10 02:14:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_output.h,v 1.19 2011/07/17 20:54:50 joerg Exp $ */
+/* $NetBSD: db_output.h,v 1.20 2012/02/10 02:14:23 christos Exp $ */
/*
* Mach Operating System
@@ -37,8 +37,7 @@
void db_force_whitespace(void);
void db_putchar(int);
int db_print_position(void);
-void db_printf(const char *, ...)
- __attribute__((__format__(__printf__,1,2)));
+void db_printf(const char *, ...) __printflike(1, 2);
void db_vprintf(const char *, va_list);
void db_format_radix(char *, size_t, quad_t, int);
void db_format_hex(char *, size_t, quad_t, int);
diff -r 4404cb66339e -r 2aff621225ba sys/ddb/db_sym.h
--- a/sys/ddb/db_sym.h Fri Feb 10 02:14:04 2012 +0000
+++ b/sys/ddb/db_sym.h Fri Feb 10 02:14:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_sym.h,v 1.24 2011/04/11 04:22:32 mrg Exp $ */
+/* $NetBSD: db_sym.h,v 1.25 2012/02/10 02:14:23 christos Exp $ */
/*
* Mach Operating System
@@ -113,6 +113,6 @@
void db_symstr(char *, size_t, db_expr_t, db_strategy_t);
void db_printsym(db_expr_t, db_strategy_t,
- void(*)(const char *, ...));
+ void(*)(const char *, ...) __printflike(1, 2));
/* print closest symbol to a value */
bool db_sym_numargs(db_sym_t, int *, char **);
Home |
Main Index |
Thread Index |
Old Index