summaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2019-12-22 20:45:28 +0200
committerJeff Layton <jlayton@kernel.org>2019-12-29 09:00:58 -0500
commit98ca480a8f22fdbd768e3dad07024c8d4856576c (patch)
tree867b336245fb18958569d91b3bb0b4d8b0f02aa8 /fs/locks.c
parent46cf053efec6a3a5f343fead837777efe8252a46 (diff)
downloadlinux-98ca480a8f22fdbd768e3dad07024c8d4856576c.tar.gz
linux-98ca480a8f22fdbd768e3dad07024c8d4856576c.tar.bz2
linux-98ca480a8f22fdbd768e3dad07024c8d4856576c.zip
locks: print unsigned ino in /proc/locks
An ino is unsigned, so display it as such in /proc/locks. Cc: stable@vger.kernel.org Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 6970f55daf54..44b6da032842 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -2853,7 +2853,7 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl,
}
if (inode) {
/* userspace relies on this representation of dev_t */
- seq_printf(f, "%d %02x:%02x:%ld ", fl_pid,
+ seq_printf(f, "%d %02x:%02x:%lu ", fl_pid,
MAJOR(inode->i_sb->s_dev),
MINOR(inode->i_sb->s_dev), inode->i_ino);
} else {