summaryrefslogtreecommitdiff
path: root/gas/itbl-ops.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-10 21:35:32 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-10 21:35:32 +0000
commit41e60a8210145f7d28995754ca43de3fc37eb2b4 (patch)
treef636f0bd986cce8c968383c05925bc444742a702 /gas/itbl-ops.c
parent84be4d71176e648dfed2424cc66bf277d3d2ce82 (diff)
downloadbinutils-gdb-41e60a8210145f7d28995754ca43de3fc37eb2b4.tar.gz
* itbl-ops.c (itbl_disassemble): Change sprintf format strings to
match parameters. (find_entry_byval): Add parens to avoid warning.
Diffstat (limited to 'gas/itbl-ops.c')
-rw-r--r--gas/itbl-ops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/itbl-ops.c b/gas/itbl-ops.c
index 23d5f2f33f9..27cca606f75 100644
--- a/gas/itbl-ops.c
+++ b/gas/itbl-ops.c
@@ -643,7 +643,7 @@ itbl_disassemble (char *s, unsigned long insn)
if (r)
strcat (s, r->name);
else
- sprintf (s, "%s$%d", s, value);
+ sprintf (s, "%s$%lu", s, value);
break;
case e_addr:
/* 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 */
case e_immed:
- sprintf (s, "%s0x%x", s, value);
+ sprintf (s, "%s0x%lx", s, value);
break;
default:
return 0; /* error; invalid field spec */
@@ -741,7 +741,7 @@ char *
itbl_get_field (char **S)
{
static char n[128];
- char *p, *ps, *s;
+ char *s;
int len;
s = *S;
@@ -811,8 +811,8 @@ find_entry_byval (e_processor processor, e_type type,
eval = apply_range (e->value, e->range);
val &= apply_range (0xffffffff, e->range);
}
- else if (r->sbit == e->range.sbit && r->ebit == e->range.ebit
- || e->range.sbit == 0 && e->range.ebit == 0)
+ else if ((r->sbit == e->range.sbit && r->ebit == e->range.ebit)
+ || (e->range.sbit == 0 && e->range.ebit == 0))
{
eval = apply_range (e->value, *r);
val = apply_range (val, *r);