All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number
@ 2016-04-11 13:08 Wei Liu
  2016-04-11 13:16 ` Juergen Gross
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Liu @ 2016-04-11 13:08 UTC (permalink / raw)
  To: Xen-devel; +Cc: Juergen Gross, Ian Jackson, Wei Liu, Chunyan Liu

Both be_domid and fe_domid are unsigned.

Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Chunyan Liu <cyliu@suse.com>
---
 tools/libxl/libxl_pvusb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_pvusb.c b/tools/libxl/libxl_pvusb.c
index c66733b..9f1e842 100644
--- a/tools/libxl/libxl_pvusb.c
+++ b/tools/libxl/libxl_pvusb.c
@@ -350,7 +350,7 @@ static const char *vusb_be_from_xs_fe(libxl__gc *gc, const char *fe_path,
 
     /* Check to see that it has the proper form, and that fe_domid ==
      * target domid */
-    r = sscanf(be_path, "/local/domain/%d/backend/%15[^/]/%d",
+    r = sscanf(be_path, "/local/domain/%u/backend/%15[^/]/%u",
                &be_domid, be_type, &fe_domid);
 
     if (r != 3 || fe_domid != tgt_domid) {
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number
  2016-04-11 13:08 [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number Wei Liu
@ 2016-04-11 13:16 ` Juergen Gross
  2016-04-22 14:44   ` Ian Jackson
  0 siblings, 1 reply; 5+ messages in thread
From: Juergen Gross @ 2016-04-11 13:16 UTC (permalink / raw)
  To: Wei Liu, Xen-devel; +Cc: Ian Jackson, Chunyan Liu

On 11/04/16 15:08, Wei Liu wrote:
> Both be_domid and fe_domid are unsigned.
> 
> Reported-by: Olaf Hering <olaf@aepfle.de>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Reviewed-by: Juergen Gross <jgross@suse.com>

> ---
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Juergen Gross <jgross@suse.com>
> Cc: Chunyan Liu <cyliu@suse.com>
> ---
>  tools/libxl/libxl_pvusb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/libxl/libxl_pvusb.c b/tools/libxl/libxl_pvusb.c
> index c66733b..9f1e842 100644
> --- a/tools/libxl/libxl_pvusb.c
> +++ b/tools/libxl/libxl_pvusb.c
> @@ -350,7 +350,7 @@ static const char *vusb_be_from_xs_fe(libxl__gc *gc, const char *fe_path,
>  
>      /* Check to see that it has the proper form, and that fe_domid ==
>       * target domid */
> -    r = sscanf(be_path, "/local/domain/%d/backend/%15[^/]/%d",
> +    r = sscanf(be_path, "/local/domain/%u/backend/%15[^/]/%u",
>                 &be_domid, be_type, &fe_domid);
>  
>      if (r != 3 || fe_domid != tgt_domid) {
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number
  2016-04-11 13:16 ` Juergen Gross
@ 2016-04-22 14:44   ` Ian Jackson
  2016-04-22 14:48     ` Wei Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Jackson @ 2016-04-22 14:44 UTC (permalink / raw)
  To: Wei Liu; +Cc: Juergen Gross, Xen-devel, Chunyan Liu

Juergen Gross writes ("Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number"):
> On 11/04/16 15:08, Wei Liu wrote:
> > Both be_domid and fe_domid are unsigned.
> > 
> > Reported-by: Olaf Hering <olaf@aepfle.de>
> > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> 
> Reviewed-by: Juergen Gross <jgross@suse.com>

This patch doesn't have a formal release ack.  I am confused.

Wei, if you send a patch "for 4.7", should I take you to have
implicitly acked it yourself, or what ?

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number
  2016-04-22 14:44   ` Ian Jackson
@ 2016-04-22 14:48     ` Wei Liu
  2016-04-22 17:12       ` Ian Jackson
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Liu @ 2016-04-22 14:48 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Juergen Gross, Xen-devel, Wei Liu, Chunyan Liu

On Fri, Apr 22, 2016 at 03:44:09PM +0100, Ian Jackson wrote:
> Juergen Gross writes ("Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number"):
> > On 11/04/16 15:08, Wei Liu wrote:
> > > Both be_domid and fe_domid are unsigned.
> > > 
> > > Reported-by: Olaf Hering <olaf@aepfle.de>
> > > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> > 
> > Reviewed-by: Juergen Gross <jgross@suse.com>
> 
> This patch doesn't have a formal release ack.  I am confused.
> 
> Wei, if you send a patch "for 4.7", should I take you to have
> implicitly acked it yourself, or what ?
> 

My bad. This fell through the crack.

Release-acked-by: Wei Liu <wei.liu2@citrix.com>

Generally speaking even if I myself send a patch I would still want to
explicitly release ack it because I might not want the patch to go
straight in.

Wei.

> Thanks,
> Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number
  2016-04-22 14:48     ` Wei Liu
@ 2016-04-22 17:12       ` Ian Jackson
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Jackson @ 2016-04-22 17:12 UTC (permalink / raw)
  To: Wei Liu; +Cc: Juergen Gross, Xen-devel, Chunyan Liu

Wei Liu writes ("Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number"):
> On Fri, Apr 22, 2016 at 03:44:09PM +0100, Ian Jackson wrote:
> > Juergen Gross writes ("Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number"):
> > > On 11/04/16 15:08, Wei Liu wrote:
> > > > Both be_domid and fe_domid are unsigned.
> > > > 
> > > > Reported-by: Olaf Hering <olaf@aepfle.de>
> > > > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> > > 
> > > Reviewed-by: Juergen Gross <jgross@suse.com>
> > 
> > This patch doesn't have a formal release ack.  I am confused.
> > 
> > Wei, if you send a patch "for 4.7", should I take you to have
> > implicitly acked it yourself, or what ?
> > 
> 
> My bad. This fell through the crack.
> 
> Release-acked-by: Wei Liu <wei.liu2@citrix.com>

Queued, thanks.

> Generally speaking even if I myself send a patch I would still want to
> explicitly release ack it because I might not want the patch to go
> straight in.

Right, OK.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-22 17:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 13:08 [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number Wei Liu
2016-04-11 13:16 ` Juergen Gross
2016-04-22 14:44   ` Ian Jackson
2016-04-22 14:48     ` Wei Liu
2016-04-22 17:12       ` Ian Jackson

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.