aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorTobias Oed <tobias.oed@octant-fr.com>2007-06-11 08:56:31 -0400
committerJames Morris <jmorris@namei.org>2007-07-11 22:52:27 -0400
commit13bddc2e9d591e31bf20020dc19ea6ca85de420e (patch)
treeb813a0a060439c4cfb84c93dc14307179465829b /security
parent2c3c05dbcbc7b9d71549fe0e2b249f10f5a66518 (diff)
downloadlinux-linaro-13bddc2e9d591e31bf20020dc19ea6ca85de420e.tar.gz
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 <tobias.oed@octant-fr.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/avc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c
index cc5fcef9e22..78c408fd2b0 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;