mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
99b0acd175
commit
a20e8c7a68
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||