[PATCH xrandr] xrandr: dump configuration in parsable format

Keith Packard keithp at keithp.com
Wed Dec 8 10:41:28 PST 2010


On Tue, 7 Dec 2010 22:13:12 +0100, Stefan Tomanek <stefan.tomanek at wertarbyte.de> wrote:
> Dies schrieb Cyril Brulebois (kibi at debian.org):
> 
> > Stefan Tomanek <stefan.tomanek at wertarbyte.de> (08/11/2010):
> > > -	    printf ("%s %s", output_info->name, connection[output_info->connection]);
> > > +	    printf ( dump ? "output %s\n" : "%s %s", output_info->name, connection[output_info->connection]);
> > 
> > Looks like a missing "%s" in the first string?
> 
> No, this is actually done on purpose to mirror the command line
> argument, e.g. "--output VGA0". We do not have to indicate whether the
> display is actually connected.

Don't be fancy about it, just have two different printf calls.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101208/e6acb1e0/attachment.pgp>


More information about the xorg-devel mailing list