From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH] Create new and use new print_error that uses printf style formatting. Date: Tue, 19 Oct 2010 11:49:51 +1100 Message-ID: <20101019004951.GD5512@yookeroo> References: <20101018200930.23978.61516.stgit@riker> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20101018200930.23978.61516.stgit@riker> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: John Bonesio Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On Mon, Oct 18, 2010 at 01:10:39PM -0700, John Bonesio wrote: > yyerror is meant to be called by the parser internal code, and it's > interface is limited. Instead create and call a new error message > routine that allows formatted strings to be used. > > yyerror uses the new routine so error formatting remains consistent. > Signed-of-by: John Bonesio The name doesn't really capture the difference between print_error() and srcpos_error(), but that's a footling detail we can fix some other time. Acked-by: David Gibson -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson