diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-04-30 09:08:08 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-04-30 09:08:08 +0200 |
commit | b3f685edb7b8d040182b9e4d83bf34f2883cc385 (patch) | |
tree | 561e7e9279fe311e856957b8015d357dba07a6fe /xen/xsm | |
parent | 0352856935590a6b740306f2559fe204908472c9 (diff) | |
download | xen-b3f685edb7b8d040182b9e4d83bf34f2883cc385.tar.gz xen-b3f685edb7b8d040182b9e4d83bf34f2883cc385.tar.bz2 xen-b3f685edb7b8d040182b9e4d83bf34f2883cc385.zip |
xsm: fix printf format string for strlen result
strlen returns size_t:
policydb.c: In function policydb_read:
policydb.c:1779: error: format %lu expects type long unsigned int, but argument 3 has type size_t
This is probably benign on 64-bit x86 but was found by Dharshini on 32-bit Xen
4.2.x. I expect it affects ARM too.
Reported-by: Dharshini Tharmaraj <dharshinitharmaraj@gmail.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Diffstat (limited to 'xen/xsm')
-rw-r--r-- | xen/xsm/flask/ss/policydb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/xsm/flask/ss/policydb.c b/xen/xsm/flask/ss/policydb.c index fefcd59171..bdec4ac264 100644 --- a/xen/xsm/flask/ss/policydb.c +++ b/xen/xsm/flask/ss/policydb.c @@ -1737,7 +1737,7 @@ int policydb_read(struct policydb *p, void *fp) if ( len != strlen(POLICYDB_STRING) ) { printk(KERN_ERR "Flask: policydb string length %d does not " - "match expected length %lu\n", + "match expected length %zu\n", len, strlen(POLICYDB_STRING)); goto bad; } |