WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xsm: Change format strings from signed to

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xsm: Change format strings from signed to unsigned
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Nov 2009 23:35:57 -0800
Delivery-date: Sun, 22 Nov 2009 23:38:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1258960583 0
# Node ID 24bcd003f8ae9d07fe81d66fa42cbe0647c49fbc
# Parent  302e0877e4cf99482c3baa2b692cd438f37ebce3
xsm: Change format strings from signed to unsigned
...to reflect the variables being passed in.

Signed-off-by : Paul Nuzzi <pjnuzzi@xxxxxxxxxxxxxx>
---
 tools/flask/libflask/flask_op.c |   38 +++++++++++++++++++-------------------
 xen/xsm/flask/flask_op.c        |    4 ++--
 2 files changed, 21 insertions(+), 21 deletions(-)

diff -r 302e0877e4cf -r 24bcd003f8ae tools/flask/libflask/flask_op.c
--- a/tools/flask/libflask/flask_op.c   Mon Nov 23 07:14:33 2009 +0000
+++ b/tools/flask/libflask/flask_op.c   Mon Nov 23 07:16:23 2009 +0000
@@ -154,7 +154,7 @@ int flask_add_ioport(int xc_handle, unsi
     memset(buf, 0, size);
 
     op.cmd = FLASK_ADD_OCONTEXT;
-    snprintf(buf, size, "%s %255s %li %li", ioport, scontext, low, high);
+    snprintf(buf, size, "%s %255s %lu %lu", ioport, scontext, low, high);
     op.buf = buf;
     op.size = size;
 
@@ -184,7 +184,7 @@ int flask_add_iomem(int xc_handle, unsig
     memset(buf, 0, size);
 
     op.cmd = FLASK_ADD_OCONTEXT;
-    snprintf(buf, size, "%s %255s %li %li", iomem, scontext, low, high);
+    snprintf(buf, size, "%s %255s %lu %lu", iomem, scontext, low, high);
     op.buf = buf;
     op.size = size;
 
@@ -213,7 +213,7 @@ int flask_add_device(int xc_handle, unsi
     memset(buf, 0, size);
 
     op.cmd = FLASK_ADD_OCONTEXT;
-    snprintf(buf, size, "%s %255s %li", dev, scontext, device);
+    snprintf(buf, size, "%s %255s %lu", dev, scontext, device);
     op.buf = buf;
     op.size = size;
 
@@ -271,7 +271,7 @@ int flask_del_ioport(int xc_handle, unsi
     memset(buf, 0, size);
 
     op.cmd = FLASK_DEL_OCONTEXT;
-    snprintf(buf, size, "%s %li %li", ioport, low, high);
+    snprintf(buf, size, "%s %lu %lu", ioport, low, high);
     op.buf = buf;
     op.size = size;
 
@@ -300,7 +300,7 @@ int flask_del_iomem(int xc_handle, unsig
     memset(buf, 0, size);
 
     op.cmd = FLASK_DEL_OCONTEXT;
-    snprintf(buf, size, "%s %li %li", iomem, low, high);
+    snprintf(buf, size, "%s %lu %lu", iomem, low, high);
     op.buf = buf;
     op.size = size;
 
@@ -328,17 +328,17 @@ int flask_del_device(int xc_handle, unsi
     memset(buf, 0, size);
 
     op.cmd = FLASK_DEL_OCONTEXT;
-    snprintf(buf, size, "%s %li", dev, device);
-    op.buf = buf;
-    op.size = size;
-
-    if ( (err = xc_flask_op(xc_handle, &op)) != 0 )
-    {
-        free(buf);
-        return err;
-    }
-
-    free(buf);
-    return 0;
-
-}
+    snprintf(buf, size, "%s %lu", dev, device);
+    op.buf = buf;
+    op.size = size;
+
+    if ( (err = xc_flask_op(xc_handle, &op)) != 0 )
+    {
+        free(buf);
+        return err;
+    }
+
+    free(buf);
+    return 0;
+
+}
diff -r 302e0877e4cf -r 24bcd003f8ae xen/xsm/flask/flask_op.c
--- a/xen/xsm/flask/flask_op.c  Mon Nov 23 07:14:33 2009 +0000
+++ b/xen/xsm/flask/flask_op.c  Mon Nov 23 07:16:23 2009 +0000
@@ -768,7 +768,7 @@ static int flask_ocontext_del(char *buf,
     if ( (ocontext = xmalloc_bytes(size) ) == NULL )
         return -ENOMEM;
 
-    len = sscanf(buf, "%s %li %li", ocontext, &low, &high);
+    len = sscanf(buf, "%s %lu %lu", ocontext, &low, &high);
     if ( len < 2 )
     {
         len = -EINVAL;
@@ -814,7 +814,7 @@ static int flask_ocontext_add(char *buf,
     memset(scontext, 0, size);
     memset(ocontext, 0, size);
 
-    len = sscanf(buf, "%s %s %li %li", ocontext, scontext, &low, &high);
+    len = sscanf(buf, "%s %s %lu %lu", ocontext, scontext, &low, &high);
     if ( len < 3 )
     {
         len = -EINVAL;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xsm: Change format strings from signed to unsigned, Xen patchbot-unstable <=