Skip to content

Commit

Permalink
SELinux: Use %lu for inode->i_no when printing avc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Oed authored and James Morris committed Jul 12, 2007
1 parent 2c3c05d commit 13bddc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/avc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 13bddc2

Please sign in to comment.