[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
- [PATCH 01/66] kern/machine.c: remove __volatile__, Marin Ramesa, 2013/12/05
- [PATCH 04/66] ddb/db_command.c: remove forward declaration, Marin Ramesa, 2013/12/05
- [PATCH 05/66] ddb/db_command.h: remove duplicate variable declaration, Marin Ramesa, 2013/12/05
- [PATCH 07/66] ddb/db_output.c: remove duplicate function,
Marin Ramesa <=
- [PATCH 06/66] ddb/db_output.c: remove call to nonexistent db_printf_enter(), Marin Ramesa, 2013/12/05
- [PATCH 08/66] ddb/db_output.h: add comment, Marin Ramesa, 2013/12/05
- [PATCH 09/66] device/blkio.c: remove function, Marin Ramesa, 2013/12/05
- [PATCH 10/66] device/chario.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 11/66] device/cirbuf.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 12/66] device/cons.h: remove ifdef, Marin Ramesa, 2013/12/05
- [PATCH 14/66] device/if_ether.h: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 13/66] device/dev_lookup.c: remove unused lock, Marin Ramesa, 2013/12/05