Skip to contentSkip to conversation

libxl: pvusb: use %u to convert unsigned number

PATCH Applied Wei Liu 3 participants 5 messages Apr 11, 2016 – Apr 22, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

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
index c66733b..9f1e842 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Wei Liu

Both be_domid and fe_domid are unsigned.

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
index c66733b..9f1e842 100644

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

#2 lore raw

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_domid and fe_domid are unsigned.

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

author
#3 lore raw
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_domid and fe_domid are unsigned.

Quoted 7 lines
Quoted 1 line

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

Applied
#4 lore raw

Wei 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_domid and fe_domid are unsigned.

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.

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