SELinux: Use %lu for inode->i_no when printing avc
authorTobias Oed <tobias.oed@octant-fr.com>
Mon, 11 Jun 2007 12:56:31 +0000 (08:56 -0400)
committerJames Morris <jmorris@namei.org>
Thu, 12 Jul 2007 02:52:27 +0000 (22:52 -0400)
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>
security/selinux/avc.c

index cc5fcef..78c408f 100644 (file)
@@ -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;