This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Use correct conversion specifications in template string
- From: Jie Zhang <jzhang918 at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Sat, 21 Jan 2006 00:54:52 +0800
- Subject: [PATCH] Use correct conversion specifications in template string
I'll commit this patch in a short time. It's a simple fix. The code
explains itself well.
Jie
* config/bfin-parse.y (value_match): Use correct conversion
specifications in template string for __FILE__ and __LINE__.
(binary): Ditto.
(unary): Ditto.
Index: config/bfin-parse.y
===================================================================
RCS file: /cvs/src/src/gas/config/bfin-parse.y,v
retrieving revision 1.2
diff -u -p -r1.2 bfin-parse.y
--- config/bfin-parse.y 18 Nov 2005 14:21:29 -0000 1.2
+++ config/bfin-parse.y 20 Jan 2006 16:49:51 -0000
@@ -4232,7 +4232,7 @@ value_match (Expr_Node *expr, int sz, in
if ((v % mul) != 0)
{
- error ("%s:%d: Value Error -- Must align to %d\n", __LINE__, __FILE__, mul);
+ error ("%s:%d: Value Error -- Must align to %d\n", __FILE__, __LINE__, mul);
return 0;
}
@@ -4308,7 +4308,7 @@ binary (Expr_Op_Type op, Expr_Node *x, E
break;
default:
- error ("%s:%d: Internal compiler error\n", __LINE__, __FILE__);
+ error ("%s:%d: Internal compiler error\n", __FILE__, __LINE__);
}
return x;
}
@@ -4335,7 +4335,7 @@ unary (Expr_Op_Type op, Expr_Node *x)
x->value.i_value = ~x->value.i_value;
break;
default:
- error ("%s:%d: Internal compiler error\n", __LINE__, __FILE__);
+ error ("%s:%d: Internal compiler error\n", __FILE__, __LINE__);
}
return x;
}