Re: kconfig: error out if recursive dependencies are found

2007-05-07 Thread Adrian Bunk
On Mon, May 07, 2007 at 09:37:07PM +0200, Sam Ravnborg wrote: > On Mon, May 07, 2007 at 02:38:36AM +0200, Roman Zippel wrote: > > Hi, > > > > On Sun, 6 May 2007, Sam Ravnborg wrote: > > > > > if (sym->flags & SYMBOL_CHECK) { > > > - printf("Warning! Found recursive dependency: %s", sym-

Re: kconfig: error out if recursive dependencies are found

2007-05-07 Thread Roman Zippel
Hi, On Mon, 7 May 2007, Sam Ravnborg wrote: > We need to point out _one_ of the faulty spots only. The problem is you print only a random spot (which may not even be right one) of one of the involved symbols. We could actually print out the whole faulty chain, but it would require a few change

Re: kconfig: error out if recursive dependencies are found

2007-05-07 Thread Sam Ravnborg
On Mon, May 07, 2007 at 02:38:36AM +0200, Roman Zippel wrote: > Hi, > > On Sun, 6 May 2007, Sam Ravnborg wrote: > > > if (sym->flags & SYMBOL_CHECK) { > > - printf("Warning! Found recursive dependency: %s", sym->name); > > + fprintf(stderr, "%s:%d:error: found recursive de

Re: kconfig: error out if recursive dependencies are found

2007-05-06 Thread Roman Zippel
Hi, On Sun, 6 May 2007, Sam Ravnborg wrote: > if (sym->flags & SYMBOL_CHECK) { > - printf("Warning! Found recursive dependency: %s", sym->name); > + fprintf(stderr, "%s:%d:error: found recursive dependency: %s", > + sym->prop->file->name, sym->pro