mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
* itbl-ops.c (itbl_disassemble): Change sprintf format strings to
match parameters. (find_entry_byval): Add parens to avoid warning.
This commit is contained in:
parent
84be4d7117
commit
41e60a8210
@ -643,7 +643,7 @@ itbl_disassemble (char *s, unsigned long insn)
|
|||||||
if (r)
|
if (r)
|
||||||
strcat (s, r->name);
|
strcat (s, r->name);
|
||||||
else
|
else
|
||||||
sprintf (s, "%s$%d", s, value);
|
sprintf (s, "%s$%lu", s, value);
|
||||||
break;
|
break;
|
||||||
case e_addr:
|
case e_addr:
|
||||||
/* use assembler's symbol table to find symbol */
|
/* use assembler's symbol table to find symbol */
|
||||||
@ -652,7 +652,7 @@ itbl_disassemble (char *s, unsigned long insn)
|
|||||||
*/
|
*/
|
||||||
/* If not a symbol, fall thru to IMMED */
|
/* If not a symbol, fall thru to IMMED */
|
||||||
case e_immed:
|
case e_immed:
|
||||||
sprintf (s, "%s0x%x", s, value);
|
sprintf (s, "%s0x%lx", s, value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0; /* error; invalid field spec */
|
return 0; /* error; invalid field spec */
|
||||||
@ -741,7 +741,7 @@ char *
|
|||||||
itbl_get_field (char **S)
|
itbl_get_field (char **S)
|
||||||
{
|
{
|
||||||
static char n[128];
|
static char n[128];
|
||||||
char *p, *ps, *s;
|
char *s;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
s = *S;
|
s = *S;
|
||||||
@ -811,8 +811,8 @@ find_entry_byval (e_processor processor, e_type type,
|
|||||||
eval = apply_range (e->value, e->range);
|
eval = apply_range (e->value, e->range);
|
||||||
val &= apply_range (0xffffffff, e->range);
|
val &= apply_range (0xffffffff, e->range);
|
||||||
}
|
}
|
||||||
else if (r->sbit == e->range.sbit && r->ebit == e->range.ebit
|
else if ((r->sbit == e->range.sbit && r->ebit == e->range.ebit)
|
||||||
|| e->range.sbit == 0 && e->range.ebit == 0)
|
|| (e->range.sbit == 0 && e->range.ebit == 0))
|
||||||
{
|
{
|
||||||
eval = apply_range (e->value, *r);
|
eval = apply_range (e->value, *r);
|
||||||
val = apply_range (val, *r);
|
val = apply_range (val, *r);
|
||||||
|
Loading…
Reference in New Issue
Block a user