summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_sym.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-01-15 22:41:03 +0000
committerphk <phk@FreeBSD.org>1996-01-15 22:41:03 +0000
commitc3e6222aa59d814018c016139a893ede0ef0d03d (patch)
tree211438af77a23891624f21f01f20a5620899f56d /sys/ddb/db_sym.c
parentcec94deabe34b585be7b0d70cbe9cc117a949334 (diff)
downloadFreeBSD-src-c3e6222aa59d814018c016139a893ede0ef0d03d.zip
FreeBSD-src-c3e6222aa59d814018c016139a893ede0ef0d03d.tar.gz
Get rid of two and a half printf in the kernel.
Add more features to the one remaining to handle the job: + signed quantity. # alternate format - left padding * read width as next arg. n numeric in (argument specified) default radix. Fix the DDB debugger to use these. Use vprintf in debug routine in pcvt. The warnings from gcc may become more wrong and intolerable because of this. Warning: I have not checked the entire source for unsupported or changed constructs, but generally belive that there are only a few. Suggested by: bde
Diffstat (limited to 'sys/ddb/db_sym.c')
-rw-r--r--sys/ddb/db_sym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 32975db..5859962 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_sym.c,v 1.13 1995/12/10 13:32:41 phk Exp $
+ * $Id: db_sym.c,v 1.14 1995/12/10 19:08:15 bde Exp $
*/
/*
@@ -299,7 +299,7 @@ db_printsym(off, strategy)
}
db_printf("%s", name);
if (d)
- db_printf("+%#r", d);
+ db_printf("+%+#n", d);
if (strategy == DB_STGY_PROC) {
if (db_line_at_pc(cursym, &filename, &linenum, off))
db_printf(" [%s:%d]", filename, linenum);
OpenPOWER on IntegriCloud