summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-05 22:03:01 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-08 23:48:11 +0900
commit50a41a4e8f602a8619f42e8685a9b66d66f59f22 (patch)
tree9ae4617b0dcd58d4c422955037ca29b7fd24dc35
parent653ebe7bf09d3f84dde263ac8fdecddb6239c36f (diff)
ddb/db_output.c: remove duplicate function
Function kdbprintf() and db_printf() are the same function. Remove kdbprintf() and define kdbprintf to db_printf. * ddb/db_output.c (kdbprintf): Remove function. * ddb/db_output.h: Define kdbprintf to db_printf. (kdbprintf): Remove prototype.
-rw-r--r--ddb/db_output.c12
-rw-r--r--ddb/db_output.h3
2 files changed, 2 insertions, 13 deletions
diff --git a/ddb/db_output.c b/ddb/db_output.c
index 268de69..91ade91 100644
--- a/ddb/db_output.c
+++ b/ddb/db_output.c
@@ -215,16 +215,4 @@ db_printf(const char *fmt, ...)
va_end(listp);
}
-/* alternate name */
-
-/*VARARGS1*/
-void
-kdbprintf(const char *fmt, ...)
-{
- va_list listp;
- va_start(listp, fmt);
- _doprnt(fmt, listp, db_id_putc, db_radix, 0);
- va_end(listp);
-}
-
#endif /* MACH_KDB */
diff --git a/ddb/db_output.h b/ddb/db_output.h
index e7a4ba3..e886647 100644
--- a/ddb/db_output.h
+++ b/ddb/db_output.h
@@ -39,7 +39,8 @@ extern void db_force_whitespace(void);
extern int db_print_position(void);
extern void db_end_line(void);
extern void db_printf(const char *fmt, ...);
+/* alternate name */
+#define kdbprintf db_printf
extern void db_putchar(int c);
-extern void kdbprintf(const char *fmt, ...);
#endif /* _DDB_DB_OUTPUT_H_ */