Skip to content

Commit f52aa79

Browse files
fsorensonsmfrench
authored andcommitted
cifs: Fix mode output in debugging statements
A number of the debug statements output file or directory mode in hex. Change these to print using octal. Signed-off-by: Frank Sorenson <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 3f6166a commit f52aa79

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fs/cifs/cifsacl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ static void access_flags_to_mode(__le32 ace_flags, int type, umode_t *pmode,
601601
((flags & FILE_EXEC_RIGHTS) == FILE_EXEC_RIGHTS))
602602
*pmode |= (S_IXUGO & (*pbits_to_set));
603603

604-
cifs_dbg(NOISY, "access flags 0x%x mode now 0x%x\n", flags, *pmode);
604+
cifs_dbg(NOISY, "access flags 0x%x mode now %04o\n", flags, *pmode);
605605
return;
606606
}
607607

@@ -630,7 +630,7 @@ static void mode_to_access_flags(umode_t mode, umode_t bits_to_use,
630630
if (mode & S_IXUGO)
631631
*pace_flags |= SET_FILE_EXEC_RIGHTS;
632632

633-
cifs_dbg(NOISY, "mode: 0x%x, access flags now 0x%x\n",
633+
cifs_dbg(NOISY, "mode: %04o, access flags now 0x%x\n",
634634
mode, *pace_flags);
635635
return;
636636
}

fs/cifs/connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4151,7 +4151,7 @@ int cifs_setup_cifs_sb(struct smb_vol *pvolume_info,
41514151
cifs_sb->mnt_gid = pvolume_info->linux_gid;
41524152
cifs_sb->mnt_file_mode = pvolume_info->file_mode;
41534153
cifs_sb->mnt_dir_mode = pvolume_info->dir_mode;
4154-
cifs_dbg(FYI, "file mode: 0x%hx dir mode: 0x%hx\n",
4154+
cifs_dbg(FYI, "file mode: %04ho dir mode: %04ho\n",
41554155
cifs_sb->mnt_file_mode, cifs_sb->mnt_dir_mode);
41564156

41574157
cifs_sb->actimeo = pvolume_info->actimeo;

fs/cifs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, umode_t mode)
16481648
struct TCP_Server_Info *server;
16491649
char *full_path;
16501650

1651-
cifs_dbg(FYI, "In cifs_mkdir, mode = 0x%hx inode = 0x%p\n",
1651+
cifs_dbg(FYI, "In cifs_mkdir, mode = %04ho inode = 0x%p\n",
16521652
mode, inode);
16531653

16541654
cifs_sb = CIFS_SB(inode->i_sb);

0 commit comments

Comments
 (0)