summaryrefslogtreecommitdiffstats
path: root/sys/ddb/ddb.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2010-05-11 17:01:14 +0000
committerattilio <attilio@FreeBSD.org>2010-05-11 17:01:14 +0000
commita6a1f012b778df297f5ac367cbd09a21823defe0 (patch)
treeb27d5ec4ed70f3633f0abcab31f2d96e2440f5f6 /sys/ddb/ddb.h
parent31c196b3b94d81c997db90b6e80a55ceb02cb044 (diff)
downloadFreeBSD-src-a6a1f012b778df297f5ac367cbd09a21823defe0.zip
FreeBSD-src-a6a1f012b778df297f5ac367cbd09a21823defe0.tar.gz
There is not a good reason to have a different prototype for db_printf()
when compared to printf(). Unify it by returning the number of characters displayed for db_printf() as well. MFC after: 7 days
Diffstat (limited to 'sys/ddb/ddb.h')
-rw-r--r--sys/ddb/ddb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/ddb.h b/sys/ddb/ddb.h
index e6d8a95..9b240b6 100644
--- a/sys/ddb/ddb.h
+++ b/sys/ddb/ddb.h
@@ -200,7 +200,7 @@ int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
void db_md_list_watchpoints(void);
void db_print_loc_and_inst(db_addr_t loc);
void db_print_thread(void);
-void db_printf(const char *fmt, ...) __printflike(1, 2);
+int db_printf(const char *fmt, ...) __printflike(1, 2);
int db_read_bytes(vm_offset_t addr, size_t size, char *data);
/* machine-dependent */
int db_readline(char *lstart, int lsize);
OpenPOWER on IntegriCloud