[RFC/PATCH] xfree86: add xf86IDrvMsg and friends for input driver logging.

Peter Hutterer peter.hutterer at who-t.net
Tue Jun 15 17:51:01 PDT 2010


On Tue, Jun 15, 2010 at 05:32:55PM -0700, Alan Coopersmith wrote:
> > +    tmpFormat = malloc(strlen(format)+ strlen(dev->drv->driverName) + strlen(dev->name) + 5);
> > +    if (!tmpFormat)
> > +        return;
> > +
> > +    sprintf(tmpFormat, "%s: %s: %s", dev->drv->driverName, dev->name, format);
> 
> Xprintf() ?  (Aka our portable version of the not-yet-universal asprintf().)

ooh, nice, thanks.
I guess copy-paste from xf86DrvMsg wasn't the best idea ;)

Cheers,
  Peter


More information about the xorg-devel mailing list