From: Tobias Oed Date: Mon, 11 Jun 2007 12:56:31 +0000 (-0400) Subject: SELinux: Use %lu for inode->i_no when printing avc X-Git-Tag: v2.6.23-rc1~1102^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13bddc2e9d591e31bf20020dc19ea6ca85de420e;p=linux-2.6 SELinux: Use %lu for inode->i_no when printing avc Inode numbers are unsigned long and so need to %lu as format string of printf. Signed-off-by: Tobias Oed Signed-off-by: James Morris --- diff --git a/security/selinux/avc.c b/security/selinux/avc.c index cc5fcef9e2..78c408fd2b 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c @@ -586,7 +586,7 @@ void avc_audit(u32 ssid, u32 tsid, } } if (inode) - audit_log_format(ab, " dev=%s ino=%ld", + audit_log_format(ab, " dev=%s ino=%lu", inode->i_sb->s_id, inode->i_ino); break;