libxl: pvusb: use %u to convert unsigned number
PATCH 1/1 libxl: pvusb: use %u to convert unsigned number
Both be_domid and fe_domid are unsigned.
---
Cc: Ian Jackson <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: Chunyan Liu <[email protected]>
--- tools/libxl/libxl_pvusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_pvusb.c +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) {
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Quoted 4 lines · Wei Liu
Both
be_domidandfe_domidare unsigned.Reported-by Olaf Hering <[email protected]>Signed-off-by Wei Liu <[email protected]>
Quoted 14 lines
---
Cc: Ian Jackson <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: Chunyan Liu <[email protected]>--- tools/libxl/libxl_pvusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/libxl/libxl_pvusb.c +0
-0
tools/libxl/libxl_pvusb.c static const char *vusb_be_from_xs_fe(libxl__gc *gc, const char *fe_path, · line 356
Quoted 8 lines
tools/libxl/libxl_pvusb.c +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) {
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Juergen Gross writes ("Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number"):
Quoted 7 lines · Wei Liu
Quoted 4 lines
Both
be_domidandfe_domidare unsigned.Reported-by Olaf Hering <[email protected]>Signed-off-by Wei Liu <[email protected]>Reviewed-by Juergen Gross <[email protected]>
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
[email protected]
http://lists.xen.org/xen-devel
Quoted 7 lines · Ian Jackson
Juergen Gross writes ("Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number"):
Quoted 6 lines · Wei Liu
Quoted 4 lines
Both
be_domidandfe_domidare unsigned.Reported-by Olaf Hering <[email protected]>Signed-off-by Wei Liu <[email protected]>
Quoted 7 lines
Quoted 1 line
Reviewed-by Juergen Gross <[email protected]>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.
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.
Quoted 2 lines
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Ian Jackson
AppliedWei Liu writes ("Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number"):
Quoted 12 lines · Ian Jackson
Quoted 11 lines
Juergen Gross writes ("Re: [PATCH for-4.7] libxl: pvusb: use %u to convert unsigned number"):
Quoted 7 lines · Wei Liu
Quoted 4 lines
Both
be_domidandfe_domidare unsigned.Reported-by Olaf Hering <[email protected]>Signed-off-by Wei Liu <[email protected]>Reviewed-by Juergen Gross <[email protected]>This patch doesn't have a formal release ack. I am confused.
Quoted 7 lines
Quoted 3 lines
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 <[email protected]>
Queued, thanks.
Quoted 3 lines
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
[email protected]
http://lists.xen.org/xen-devel