Skip to content

Commit 998a59d

Browse files
committed
treewide: fix missed i_ino format specifier conversions
Fix three format strings that were missed in the treewide i_ino unsigned long to u64 conversion: - fs/binfmt_elf_fdpic.c: %lu -> %llu - fs/ext2/xattr.c: %ld -> %llu (debug macro, also fixes signedness) - fs/isofs/inode.c: %ld -> %llu (debug block, also fixes signedness) Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 309a4f8 commit 998a59d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

fs/binfmt_elf_fdpic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ static int elf_fdpic_map_file(struct elf_fdpic_params *params,
911911
return 0;
912912

913913
dynamic_error:
914-
printk("ELF FDPIC %s with invalid DYNAMIC section (inode=%lu)\n",
914+
printk("ELF FDPIC %s with invalid DYNAMIC section (inode=%llu)\n",
915915
what, file_inode(file)->i_ino);
916916
return -ELIBBAD;
917917
}

fs/ext2/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
#ifdef EXT2_XATTR_DEBUG
7575
# define ea_idebug(inode, f...) do { \
76-
printk(KERN_DEBUG "inode %s:%ld: ", \
76+
printk(KERN_DEBUG "inode %s:%llu: ", \
7777
inode->i_sb->s_id, inode->i_ino); \
7878
printk(f); \
7979
printk("\n"); \

fs/isofs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ static int isofs_read_inode(struct inode *inode, int relocated)
13891389
#ifdef DEBUG
13901390
if((de->flags[-high_sierra] & ~2)!= 0){
13911391
printk(KERN_DEBUG "ISOFS: Unusual flag settings for ISO file "
1392-
"(%ld %x).\n",
1392+
"(%llu %x).\n",
13931393
inode->i_ino, de->flags[-high_sierra]);
13941394
}
13951395
#endif

0 commit comments

Comments
 (0)