mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Fixed db_printf format errors.
This commit is contained in:
parent
c5edb423c6
commit
90163a9b33
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37497
@ -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");
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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(" ");
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user