strlen returns size_t:
policydb.c: In function \91policydb_read\92:
policydb.c:1779: error: format \91%lu\92 expects type \91long unsigned int\92, but argument 3 has type \91size_t\92
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>
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;
}