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

Julien Cristau jcristau at debian.org
Fri Mar 12 06:35:53 PST 2010


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.

Cheers,
Julien


More information about the xorg-devel mailing list