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

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.