aboutsummaryrefslogtreecommitdiffstats
path: root/tools/flask
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:16:23 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:16:23 +0000
commitadaedafa56c8aae4e1b3d30b7cddd3edcd72e99f (patch)
treebd4bc0a67d959a60d50bed58b7feff8269f0d048 /tools/flask
parent5c3c739758bab8439be9c20cb99483d0a822abaf (diff)
downloadxen-adaedafa56c8aae4e1b3d30b7cddd3edcd72e99f.tar.gz
xen-adaedafa56c8aae4e1b3d30b7cddd3edcd72e99f.tar.bz2
xen-adaedafa56c8aae4e1b3d30b7cddd3edcd72e99f.zip
xsm: Change format strings from signed to unsigned
...to reflect the variables being passed in. Signed-off-by : Paul Nuzzi <pjnuzzi@tycho.ncsc.mil>
Diffstat (limited to 'tools/flask')
-rw-r--r--tools/flask/libflask/flask_op.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/flask/libflask/flask_op.c b/tools/flask/libflask/flask_op.c
index 9eab033e4d..8b40c70595 100644
--- a/tools/flask/libflask/flask_op.c
+++ b/tools/flask/libflask/flask_op.c
@@ -154,7 +154,7 @@ int flask_add_ioport(int xc_handle, unsigned long low, unsigned long high,
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, unsigned long low, unsigned long high,
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, unsigned long device, char *scontext)
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, unsigned long low, unsigned long high)
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, unsigned long low, unsigned long high)
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,7 +328,7 @@ int flask_del_device(int xc_handle, unsigned long device)
memset(buf, 0, size);
op.cmd = FLASK_DEL_OCONTEXT;
- snprintf(buf, size, "%s %li", dev, device);
+ snprintf(buf, size, "%s %lu", dev, device);
op.buf = buf;
op.size = size;