summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-08 06:43:57 +0000
committerbde <bde@FreeBSD.org>1998-07-08 06:43:57 +0000
commite4073f6c6f4a289d5835689c40d16570af33de12 (patch)
treeb3ad7a56c10aa333f9ae5cb948681899c4762997 /sys
parent831331ce50c7e9a030bdecbc1be8eb330079600b (diff)
downloadFreeBSD-src-e4073f6c6f4a289d5835689c40d16570af33de12.zip
FreeBSD-src-e4073f6c6f4a289d5835689c40d16570af33de12.tar.gz
Fixed db_printf format errors.
Diffstat (limited to 'sys')
-rw-r--r--sys/ddb/db_break.c9
-rw-r--r--sys/ddb/db_print.c5
-rw-r--r--sys/ddb/db_ps.c11
-rw-r--r--sys/ddb/db_sym.c6
-rw-r--r--sys/ddb/db_watch.c6
5 files changed, 18 insertions, 19 deletions
diff --git a/sys/ddb/db_break.c b/sys/ddb/db_break.c
index 283eb56..e2abb65 100644
--- a/sys/ddb/db_break.c
+++ b/sys/ddb/db_break.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_break.c,v 1.15 1998/06/07 17:09:36 dfr Exp $
+ * $Id: db_break.c,v 1.16 1998/06/08 02:11:19 bde Exp $
*/
/*
@@ -258,11 +258,10 @@ db_list_breakpoints()
db_printf(" Map Count Address\n");
for (bkpt = db_breakpoint_list;
bkpt != 0;
- bkpt = bkpt->link)
- {
- db_printf("%s%8x %5d ",
+ bkpt = bkpt->link) {
+ db_printf("%s%8p %5d ",
db_map_current(bkpt->map) ? "*" : " ",
- bkpt->map, bkpt->init_count);
+ (void *)bkpt->map, bkpt->init_count);
db_printsym(bkpt->address, DB_STGY_PROC);
db_printf("\n");
}
diff --git a/sys/ddb/db_print.c b/sys/ddb/db_print.c
index 7840496..2e2bcde 100644
--- a/sys/ddb/db_print.c
+++ b/sys/ddb/db_print.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_print.c,v 1.19 1998/06/08 02:15:37 bde Exp $
+ * $Id: db_print.c,v 1.20 1998/06/10 10:56:11 dfr Exp $
*/
/*
@@ -53,7 +53,7 @@ db_show_regs(dummy1, dummy2, dummy3, dummy4)
for (regp = db_regs; regp < db_eregs; regp++) {
db_read_variable(regp, &value);
- db_printf("%-12s%#10ln", regp->name, value);
+ db_printf("%-12s%#10ln", regp->name, (unsigned long)value);
db_find_xtrn_sym_and_offset((db_addr_t)value, &name, &offset);
if (name != 0 && offset <= db_maxoff && offset != value) {
db_printf("\t%s", name);
@@ -64,4 +64,3 @@ db_show_regs(dummy1, dummy2, dummy3, dummy4)
}
db_print_loc_and_inst(PC_REGS(DDB_REGS));
}
-
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c
index 32fd48b..62388d6 100644
--- a/sys/ddb/db_ps.c
+++ b/sys/ddb/db_ps.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: db_ps.c,v 1.14 1997/02/22 09:28:28 peter Exp $
+ * $Id: db_ps.c,v 1.15 1997/10/09 00:20:00 bde Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@@ -92,11 +92,12 @@ db_ps(dummy1, dummy2, dummy3, dummy4)
if (pp == NULL)
pp = p;
- db_printf("%5d %06x %06x %4d %5d %5d %06x %d",
- p->p_pid, p, p->p_addr, p->p_cred ? p->p_cred->p_ruid : 0,
- pp->p_pid, p->p_pgrp ? p->p_pgrp->pg_id : 0, p->p_flag, p->p_stat);
+ db_printf("%5d %8p %8p %4d %5d %5d %06x %d",
+ p->p_pid, (void *)p, (void *)p->p_addr,
+ p->p_cred ? p->p_cred->p_ruid : 0, pp->p_pid,
+ p->p_pgrp ? p->p_pgrp->pg_id : 0, p->p_flag, p->p_stat);
if (p->p_wchan) {
- db_printf(" %6s %08x", p->p_wmesg, p->p_wchan);
+ db_printf(" %6s %8p", p->p_wmesg, (void *)p->p_wchan);
} else {
db_printf(" ");
}
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index a277769..4f313e9 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.22 1998/06/10 10:56:13 dfr Exp $
+ * $Id: db_sym.c,v 1.23 1998/06/28 00:55:00 dfr Exp $
*/
/*
@@ -300,11 +300,11 @@ db_printsym(off, strategy)
if (name == 0)
value = off;
if (value >= DB_SMALL_VALUE_MIN && value <= DB_SMALL_VALUE_MAX) {
- db_printf("%+#ln", off);
+ db_printf("%+#ln", (long)off);
return;
}
if (name == 0 || d >= db_maxoff) {
- db_printf("%#ln", off);
+ db_printf("%#ln", (unsigned long)off);
return;
}
db_printf("%s", name);
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c
index 1fa3c34..7769341 100644
--- a/sys/ddb/db_watch.c
+++ b/sys/ddb/db_watch.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_watch.c,v 1.15 1997/06/14 11:52:37 bde Exp $
+ * $Id: db_watch.c,v 1.16 1998/02/13 02:19:29 bde Exp $
*/
/*
@@ -174,9 +174,9 @@ db_list_watchpoints()
for (watch = db_watchpoint_list;
watch != 0;
watch = watch->link)
- db_printf("%s%8x %8x %x\n",
+ db_printf("%s%8p %8x %x\n",
db_map_current(watch->map) ? "*" : " ",
- watch->map, watch->loaddr,
+ (void *)watch->map, watch->loaddr,
watch->hiaddr - watch->loaddr);
}
OpenPOWER on IntegriCloud