All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: "Chen, Tiejun" <tiejun.chen@intel.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	ian.campbell@citrix.com, Ian.Jackson@eu.citrix.com,
	qemu-devel@nongnu.org, xen-devel@lists.xen.org,
	stefano.stabellini@citrix.com
Subject: Re: [Qemu-devel] [PATCH 2/2] libxl: introduce gfx_passthru_kind
Date: Mon, 9 Mar 2015 10:17:34 +0000	[thread overview]
Message-ID: <20150309101734.GC18491@zion.uk.xensource.com> (raw)
In-Reply-To: <54FD4190.80606@intel.com>

On Mon, Mar 09, 2015 at 02:45:36PM +0800, Chen, Tiejun wrote:
[...]
> >
> >>+                exit (1);
> >>+            }
> >>+        } else if (!xlu_cfg_get_string(config, "gfx_passthru", &buf, 0)) {
> >>+            if (libxl_gfx_passthru_kind_from_string(buf, &b_info->u.hvm.gfx_passthru_kind)) {
> >
> >Ditto.
> >
> >>+                fprintf(stderr, "ERROR: invalid value \"%s\" for \"gfx_passthru\"\n",
> >
> >Ditto.
> 
> So,
> 
> @@ -1959,13 +1959,15 @@ skip_vfb:
>              } else if (i == 1) {
>                  libxl_defbool_set(&b_info->u.hvm.gfx_passthru, true);
>              } else {
> -                fprintf(stderr, "ERROR: invalid value %ld for
> \"gfx_passthru\"\n", l);
> +                fprintf(stderr, "ERROR: invalid value %ld for"
> +                                " \"gfx_passthru\"\n", l);
>                  exit (1);
>              }
>          } else if (!xlu_cfg_get_string(config, "gfx_passthru", &buf, 0)) {
> -            if (libxl_gfx_passthru_kind_from_string(buf,
> &b_info->u.hvm.gfx_passthru_kind)) {
> -                fprintf(stderr, "ERROR: invalid value \"%s\" for
> \"gfx_passthru\"\n",
> -                        buf);
> +            if (libxl_gfx_passthru_kind_from_string(buf,
> + &b_info->u.hvm.gfx_passthru_kind)) {
> +                fprintf(stderr, "ERROR: invalid value \"%s\" for"
> +                                " \"gfx_passthru\"\n", buf);
>                  exit (1);
>              }
>              libxl_defbool_set(&b_info->u.hvm.gfx_passthru, false);
> 

Your changes are mangled by your email client. But we don't normally
split the format string so that it's easier to grep.

What we normally do is 

     fprintf(stderr,
             "FORMAT STRING",
	     a, b, c);

If format string still treads over 80 column it's fine. We can live
with that.

Wei.

> Thanks
> Tiejun

  reply	other threads:[~2015-03-09 10:17 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-06  9:08 [Qemu-devel] [PATCH 0/2] libxl: try to support IGD passthrough for qemu upstream Tiejun Chen
2015-03-06  9:08 ` [Qemu-devel] [PATCH 1/2] libxl: introduce libxl__is_igd_vga_passthru Tiejun Chen
2015-03-06 12:40   ` Wei Liu
2015-03-06 12:40     ` Wei Liu
2015-03-09  6:27     ` Chen, Tiejun
2015-03-09  6:27     ` [Qemu-devel] " Chen, Tiejun
2015-03-09 10:12       ` Wei Liu
2015-03-09 10:12       ` Wei Liu
2015-03-06  9:08 ` Tiejun Chen
2015-03-06  9:08 ` [Qemu-devel] [PATCH 2/2] libxl: introduce gfx_passthru_kind Tiejun Chen
2015-03-06  9:18   ` Chen, Tiejun
2015-03-06  9:18   ` Chen, Tiejun
2015-03-06 12:59     ` Wei Liu
2015-03-06 12:59     ` Wei Liu
2015-03-09  6:50       ` Chen, Tiejun
2015-03-09 10:13         ` Wei Liu
2015-03-09 10:13         ` Wei Liu
2015-03-09  6:50       ` Chen, Tiejun
2015-03-06 12:55   ` Wei Liu
2015-03-09  6:45     ` Chen, Tiejun
2015-03-09  6:45     ` [Qemu-devel] " Chen, Tiejun
2015-03-09 10:17       ` Wei Liu [this message]
2015-03-10  0:28         ` Chen, Tiejun
2015-03-10  0:28         ` [Qemu-devel] " Chen, Tiejun
2015-03-09 10:17       ` Wei Liu
2015-03-11 11:23       ` Ian Campbell
2015-03-11 11:23       ` [Qemu-devel] " Ian Campbell
2015-03-06 12:55   ` Wei Liu
2015-03-06  9:08 ` Tiejun Chen
2015-03-06 12:28 ` [Qemu-devel] [PATCH 0/2] libxl: try to support IGD passthrough for qemu upstream Wei Liu
2015-03-06 12:28   ` Wei Liu
2015-03-09  5:32   ` Chen, Tiejun
2015-03-09  5:32   ` [Qemu-devel] " Chen, Tiejun
2015-03-06 15:53 ` [Qemu-devel] [Xen-devel] " Konrad Rzeszutek Wilk
2015-03-09  6:58   ` Chen, Tiejun
2015-03-09  6:58   ` [Qemu-devel] [Xen-devel] " Chen, Tiejun
2015-03-06 15:53 ` Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150309101734.GC18491@zion.uk.xensource.com \
    --to=wei.liu2@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefano.stabellini@citrix.com \
    --cc=tiejun.chen@intel.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.