[PATCH] dix: be more verbose when we run out of opcodes

Paulo Ricardo Zanoni pzanoni at mandriva.com
Fri Mar 12 07:01:41 PST 2010


On Sex, 2010-03-12 at 15:35 +0100, Julien Cristau wrote:
> On Fri, Mar 12, 2010 at 10:07:32 -0300, Paulo Ricardo Zanoni wrote:
> 
> > diff --git a/dix/extension.c b/dix/extension.c
> > index fb83af1..30dc313 100644
> > --- a/dix/extension.c
> > +++ b/dix/extension.c
> > @@ -83,8 +83,11 @@ AddExtension(char *name, int NumEvents, int NumErrors,
> >      if (!MainProc || !SwappedMainProc || !MinorOpcodeProc)
> >          return((ExtensionEntry *) NULL);
> >      if ((lastEvent + NumEvents > LAST_EVENT) || 
> > -	        (unsigned)(lastError + NumErrors > LAST_ERROR))
> > +	        (unsigned)(lastError + NumErrors > LAST_ERROR)) {
> > +	LogMessage(X_ERROR, "Not enabling extension %s: maximum number of "
> > +		   "requests or replies exceeded.\n", name);
> >          return((ExtensionEntry *) NULL);
> > +    }
> >  
> s/requests or replies/events or errors/
> 
> Somehow you picked the 2 types of messages that aren't affected.
> 
OMG I need some coffee.

New version is attached.


More information about the xorg-devel mailing list