From patchwork Sat Sep 11 15:51:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 172122 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8BFrsFu029069 for ; Sat, 11 Sep 2010 15:54:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753171Ab0IKPyM (ORCPT ); Sat, 11 Sep 2010 11:54:12 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:36832 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752394Ab0IKPyM (ORCPT ); Sat, 11 Sep 2010 11:54:12 -0400 Received: by mail-gx0-f174.google.com with SMTP id 23so1555729gxk.19 for ; Sat, 11 Sep 2010 08:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=J+u1Af9MuIxkEPFBzlzFQhAv7XLezizuZg8jWJmhQbQ=; b=U2FZVJSYdbGdhJuGKl6rqGh5mTt5/3jsIAdDPDCxQTmOYsKw1+lNzp4tXicaCR7Dg1 XVAjrqopLnOzZPw1p08g+pX1YDc2WMB+8uL2bU7qKjBOYaMmeB0qOuwgbGonSAY+Rn3R +OdbJVYwtTWKMNV/8bKVPWsivSi7tExDxwiFE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=m0I5T75uYrlnTglWx1msfUMfwMUdUSSXAHPxmtSt/Ww2WpdX5FstL4jLlWtqzCAt35 5gZwLqBSpI2uVYdWbv4qLGSkuERef5nszF7j3QgzZIY09gJ8PVQzTwMsmAiUTyTLLRHk dXnlpkRaU6eAyWOroLWz9O8sG/I8Vspe/4GlE= Received: by 10.150.217.3 with SMTP id p3mr905094ybg.350.1284220451944; Sat, 11 Sep 2010 08:54:11 -0700 (PDT) Received: from localhost.localdomain (69-165-136-93.dsl.teksavvy.com [69.165.136.93]) by mx.google.com with ESMTPS id m12sm4025812ybn.19.2010.09.11.08.54.09 (version=SSLv3 cipher=RC4-MD5); Sat, 11 Sep 2010 08:54:10 -0700 (PDT) From: Arnaud Lacombe To: Sam Ravnborg , Michal Marek Cc: linux-kbuild , Arnaud Lacombe Subject: [PATCH 12/15] kconfig: use the file's name of sourced file Date: Sat, 11 Sep 2010 11:51:19 -0400 Message-Id: <1284220282-3500-13-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.2.30.gc37d7.dirty In-Reply-To: <1284220282-3500-1-git-send-email-lacombar@gmail.com> References: <1284220282-3500-1-git-send-email-lacombar@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 11 Sep 2010 15:54:13 +0000 (UTC) diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index d8f7236..e0cbf8e 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l @@ -304,9 +304,10 @@ void zconf_nextfile(const char *name) memset(buf, 0, sizeof(*buf)); current_buf->state = YY_CURRENT_BUFFER; - yyin = zconf_fopen(name); + yyin = zconf_fopen(file->name); if (!yyin) { - printf("%s:%d: can't open file \"%s\"\n", zconf_curname(), zconf_lineno(), name); + printf("%s:%d: can't open file \"%s\"\n", + zconf_curname(), zconf_lineno(), file->name); exit(1); } yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));