[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number
Both be_domid and fe_domid are unsigned. Reported-by: Olaf Hering <olaf@xxxxxxxxx> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Cc: Juergen Gross <jgross@xxxxxxxx> Cc: Chunyan Liu <cyliu@xxxxxxxx> --- 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@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |