libxl: pvusb: use %u to convert unsigned number

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>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Wei Liu authored and Ian Jackson committed 2016-04-22 18:38:45 +01:00
1 parent 99b0acd175
commit a20e8c7a68
1 file changed
+1 -1
+1 -1
View File
@@ -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) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.