This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]