bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 07/66] ddb/db_output.c: remove duplicate function


From: Marin Ramesa
Subject: [PATCH 07/66] ddb/db_output.c: remove duplicate function
Date: Thu, 5 Dec 2013 22:03:01 +0100

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.

---
 ddb/db_output.c | 12 ------------
 ddb/db_output.h |  3 ++-
 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..8d74f88 100644
--- a/ddb/db_output.h
+++ b/ddb/db_output.h
@@ -35,11 +35,12 @@
 #ifndef _DDB_DB_OUTPUT_H_
 #define _DDB_DB_OUTPUT_H_
 
+#define kdbprintf db_printf
+
 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, ...);
 extern void    db_putchar(int c);
-extern void    kdbprintf(const char *fmt, ...);
 
 #endif /* _DDB_DB_OUTPUT_H_ */
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]