+ fs-hpfs-convert-printk-to-pr_foo.patch added to -mm tree
Subject: + fs-hpfs-convert-printk-to-pr_foo.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 15 May 2014 12:56:08 -0700
The patch titled
Subject: fs/hpfs: convert printk to pr_foo()
has been added to the -mm tree. Its filename is
fs-hpfs-convert-printk-to-pr_foo.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/fs-hpfs-convert-printk-to-pr_foo.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/fs-hpfs-convert-printk-to-pr_foo.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Fabian Frederick <[email protected]>
Subject: fs/hpfs: convert printk to pr_foo()
No level printk in hptfs_error converted to pr_err (others to pr_warn or pr_info)
This patch also fixes if/then/else checkpatch warnings
---
fs/hpfs/alloc.c | 2 - fs/hpfs/buffer.c | 12 ++++----- fs/hpfs/dir.c | 6 ++-- fs/hpfs/dnode.c | 42 ++++++++++++++++++++-------------- fs/hpfs/ea.c | 6 ++-- fs/hpfs/inode.c | 3 +- fs/hpfs/map.c | 17 ++++++++----- fs/hpfs/name.c | 11 ++++----- fs/hpfs/namei.c | 2 - fs/hpfs/super.c | 55 ++++++++++++++++++++++++++------------------- 10 files changed, 89 insertions(+), 67 deletions(-)
fs/hpfs/alloc.c renamed from fs/hpfs/alloc.c~fs-hpfs-convert-printk-to-pr_foo +1 -1
@@ -316,7 +316,7 @@ void hpfs_free_sectors(struct super_blocstruct quad_buffer_head qbh;__le32 *bmp;struct hpfs_sb_info *sbi =hpfs_sb (s); -/*printk("2 - ");*/ +/*pr_info("2 - ");*/ if (!n)return ;if (sec <0x12 ) {hpfs_error (s,"Trying to free reserved sector %08x" , sec);
fs/hpfs/buffer.c renamed from fs/hpfs/buffer.c~fs-hpfs-convert-printk-to-pr_foo +6 -6
@@ -55,7 +55,7 @@ void *hpfs_map_sector(struct super_blockif (bh !=NULL )return bh->b_data;else { -printk ("HPFS: hpfs_map_sector: read error\n" ); +pr_warn ("HPFS: hpfs_map_sector: read error\n" );return NULL ; } }
@@ -76,7 +76,7 @@ void *hpfs_get_sector(struct super_blockset_buffer_uptodate (bh);return bh->b_data; }else { -printk ("HPFS: hpfs_get_sector: getblk failed\n" ); +pr_warn ("HPFS: hpfs_get_sector: getblk failed\n" );return NULL ; } }
@@ -93,7 +93,7 @@ void *hpfs_map_4sectors(struct super_blocond_resched ();if (secno &3 ) { -printk ("HPFS: hpfs_map_4sectors: unaligned read\n" ); +pr_warn ("HPFS: hpfs_map_4sectors: unaligned read\n" );return NULL ; }
@@ -112,7 +112,7 @@ void *hpfs_map_4sectors(struct super_blo qbh->data = data =kmalloc (2048 ,GFP_NOFS );if (!data) { -printk ("HPFS: hpfs_map_4sectors: out of memory\n" ); +pr_warn ("HPFS: hpfs_map_4sectors: out of memory\n" ); goto bail4; }
@@ -145,7 +145,7 @@ void *hpfs_get_4sectors(struct super_blohpfs_lock_assert (s);if (secno &3 ) { -printk ("HPFS: hpfs_get_4sectors: unaligned read\n" ); +pr_warn ("HPFS: hpfs_get_4sectors: unaligned read\n" );return NULL ; }
@@ -161,7 +161,7 @@ void *hpfs_get_4sectors(struct super_blo }if (!(qbh->data =kmalloc (2048 ,GFP_NOFS ))) { -printk ("HPFS: hpfs_get_4sectors: out of memory\n" ); +pr_warn ("HPFS: hpfs_get_4sectors: out of memory\n" ); goto bail4; }return qbh->data;
fs/hpfs/dir.c renamed from fs/hpfs/dir.c~fs-hpfs-convert-printk-to-pr_foo +3 -3
@@ -36,7 +36,7 @@ static loff_t hpfs_dir_lseek(struct filemutex_lock (&i->i_mutex);hpfs_lock (s); -/*printk("dir lseek\n");*/ +/*pr_info("dir lseek\n");*/ if (new_off ==0 || new_off ==1 || new_off ==11 || new_off ==12 || new_off ==13 ) goto ok; pos = ((loff_t )hpfs_de_as_down_as_possible (s, hpfs_inode->i_dno) <<4 ) +1 ;while (pos != new_off) {
@@ -51,7 +51,7 @@ ok:mutex_unlock (&i->i_mutex);return new_off; fail: -/*printk("illegal lseek: %016llx\n", new_off);*/ +/*pr_warn("illegal lseek: %016llx\n", new_off);*/ hpfs_unlock (s);mutex_unlock (&i->i_mutex);return -ESPIPE ;
@@ -127,7 +127,7 @@ static int hpfs_readdir(struct file *filif (ctx->pos ==12 ) goto out;if (ctx->pos ==3 || ctx->pos ==4 || ctx->pos ==5 ) { -printk ("HPFS: warning: pos==%d\n" ,(int )ctx->pos); +pr_warn ("HPFS: warning: pos==%d\n" , (int )ctx->pos); goto out; }if (ctx->pos ==0 ) {
fs/hpfs/dnode.c renamed from fs/hpfs/dnode.c~fs-hpfs-convert-printk-to-pr_foo +25 -17
119 lines not on this page · raw message
fs/hpfs/ea.c renamed from fs/hpfs/ea.c~fs-hpfs-convert-printk-to-pr_foo +3 -3
@@ -51,7 +51,7 @@ static char *get_indirect_ea(struct supe {char *ret;if (!(ret =kmalloc (size +1 ,GFP_NOFS ))) { -printk ("HPFS: out of memory for EA\n" ); +pr_warn ("HPFS: out of memory for EA\n" );return NULL ; }if (hpfs_ea_read (s, a, ano,0 , size, ret)) {
@@ -139,7 +139,7 @@ char *hpfs_get_ea(struct super_block *s,if (ea_indirect (ea))return get_indirect_ea (s,ea_in_anode (ea),ea_sec (ea), *size =ea_len (ea));if (!(ret =kmalloc ((*size =ea_valuelen (ea)) +1 ,GFP_NOFS ))) { -printk ("HPFS: out of memory for EA\n" ); +pr_warn ("HPFS: out of memory for EA\n" );return NULL ; }memcpy (ret,ea_data (ea),ea_valuelen (ea));
@@ -165,7 +165,7 @@ char *hpfs_get_ea(struct super_block *s,if (ea_indirect (ea))return get_indirect_ea (s,ea_in_anode (ea),ea_sec (ea), *size =ea_len (ea));if (!(ret =kmalloc ((*size =ea_valuelen (ea)) +1 ,GFP_NOFS ))) { -printk ("HPFS: out of memory for EA\n" ); +pr_warn ("HPFS: out of memory for EA\n" );return NULL ; }if (hpfs_ea_read (s, a, ano, pos +4 + ea->namelen +1 ,ea_valuelen (ea), ret)) {
fs/hpfs/inode.c renamed from fs/hpfs/inode.c~fs-hpfs-convert-printk-to-pr_foo +2 -1
@@ -183,7 +183,8 @@ void hpfs_write_inode(struct inode *i)struct inode *parent;if (i->i_ino ==hpfs_sb (i->i_sb)->sb_root)return ;if (hpfs_inode->i_rddir_off && !atomic_read (&i->i_count)) { -if (*hpfs_inode->i_rddir_off)printk ("HPFS: write_inode: some position still there\n" ); +if (*hpfs_inode->i_rddir_off) +pr_warn ("HPFS: write_inode: some position still there\n" );kfree (hpfs_inode->i_rddir_off); hpfs_inode->i_rddir_off =NULL ; }
fs/hpfs/map.c renamed from fs/hpfs/map.c~fs-hpfs-convert-printk-to-pr_foo +10 -7
@@ -65,12 +65,13 @@ unsigned char *hpfs_load_code_page(strucstruct code_page_directory *cp =hpfs_map_sector (s, cps, &bh,0 );if (!cp)return NULL ;if (le32_to_cpu (cp->magic) !=CP_DIR_MAGIC ) { -printk ("HPFS: Code page directory magic doesn't match (magic = %08x)\n" ,le32_to_cpu (cp->magic)); +pr_warn ("HPFS: Code page directory magic doesn't match (magic = %08x)\n" , +le32_to_cpu (cp->magic));brelse (bh);return NULL ; }if (!le32_to_cpu (cp->n_code_pages)) { -printk ("HPFS: n_code_pages == 0\n" ); +pr_warn ("HPFS: n_code_pages == 0\n" );brelse (bh);return NULL ; }
@@ -79,19 +80,19 @@ unsigned char *hpfs_load_code_page(strucbrelse (bh);if (cpi >=3 ) { -printk ("HPFS: Code page index out of array\n" ); +pr_warn ("HPFS: Code page index out of array\n" );return NULL ; }if (!(cpd =hpfs_map_sector (s, cpds, &bh,0 )))return NULL ;if (le16_to_cpu (cpd->offs[cpi]) >0x178 ) { -printk ("HPFS: Code page index out of sector\n" ); +pr_warn ("HPFS: Code page index out of sector\n" );brelse (bh);return NULL ; } ptr = (unsigned char *)cpd +le16_to_cpu (cpd->offs[cpi]) +6 ;if (!(cp_table =kmalloc (256 ,GFP_KERNEL ))) { -printk ("HPFS: out of memory for code page table\n" ); +pr_warn ("HPFS: out of memory for code page table\n" );brelse (bh);return NULL ; }
@@ -114,7 +115,7 @@ __le32 *hpfs_load_bitmap_directory(strucint i;__le32 *b;if (!(b =kmalloc (n *512 ,GFP_KERNEL ))) { -printk ("HPFS: can't allocate memory for bitmap directory\n" ); +pr_warn ("HPFS: can't allocate memory for bitmap directory\n" );return NULL ; }for (i=0 ;i<n;i++) {
@@ -281,7 +282,9 @@ struct dnode *hpfs_map_dnode(struct supehpfs_error (s,"dnode %08x does not end with \\377 entry" , secno); goto bail; } -if (b ==3 )printk ("HPFS: warning: unbalanced dnode tree, dnode %08x; see hpfs.txt 4 more info\n" , secno); +if (b ==3 ) +pr_warn ("HPFS: warning: unbalanced dnode tree, dnode %08x; see hpfs.txt 4 more info\n" , + secno); }return dnode; bail:
fs/hpfs/name.c renamed from fs/hpfs/name.c~fs-hpfs-convert-printk-to-pr_foo +6 -5
@@ -56,14 +56,15 @@ unsigned char *hpfs_translate_name(strucunsigned char *to;int i;if (hpfs_sb (s)->sb_chk >=2 )if (hpfs_is_name_long (from, len) != lng) { -printk ("HPFS: Long name flag mismatch - name " ); -for (i=0 ; i<len; i++)printk ("%c" , from[i]); -printk (" misidentified as %s.\n" , lng ?"short" :"long" ); -printk ("HPFS: It's nothing serious. It could happen because of bug in OS/2.\nHPFS: Set checks=normal to disable this message.\n" ); +pr_warn ("HPFS: Long name flag mismatch - name " ); +for (i =0 ; i < len; i++) +pr_cont ("%c" , from[i]); +pr_cont (" misidentified as %s.\n" , lng ?"short" :"long" ); +pr_warn ("HPFS: It's nothing serious. It could happen because of bug in OS/2.\nHPFS: Set checks=normal to disable this message.\n" ); }if (!lc)return from;if (!(to =kmalloc (len,GFP_KERNEL ))) { -printk ("HPFS: can't allocate memory for name conversion buffer\n" ); +pr_warn ("HPFS: can't allocate memory for name conversion buffer\n" );return from; }for (i =0 ; i < len; i++) to[i] =locase (hpfs_sb (s)->sb_cp_table,from[i]);
fs/hpfs/namei.c renamed from fs/hpfs/namei.c~fs-hpfs-convert-printk-to-pr_foo +1 -1
@@ -404,7 +404,7 @@ again:d_rehash (dentry); }else {struct iattr newattrs; -/*printk("HPFS: truncating file before delete.\n");*/ +/*pr_info("HPFS: truncating file before delete.\n");*/ newattrs.ia_size =0 ; newattrs.ia_valid =ATTR_SIZE |ATTR_CTIME ; err =notify_change (dentry, &newattrs,NULL );
fs/hpfs/super.c renamed from fs/hpfs/super.c~fs-hpfs-convert-printk-to-pr_foo +32 -23
146 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
fs-ceph-replace-pr_warning-by-pr_warn.patch fs-ceph-debugfsc-replace-seq_printf-by-seq_puts.patch fs-cifs-remove-obsolete-__constant.patch fs-jfs-jfs_logmgrc-remove-null-assignment-on-static.patch fs-jfs-superc-remove-0-assignement-to-static-code-clean-up.patch fs-fscache-convert-printk-to-pr_foo.patch fs-fscache-replace-seq_printf-by-seq_puts.patch fs-gfs2-bmapc-kernel-doc-warning-fixes.patch fs-dlm-configc-convert-simple_str-to-kstr.patch fs-dlm-lockspacec-convert-simple_str-to-kstr.patch fs-dlm-debug_fsc-replace-seq_printf-by-seq_puts.patch kernel-posix-timersc-code-clean-up.patch kernel-posix-timersc-code-clean-up-checkpatch-fixes.patch kernel-time-ntpc-convert-simple_strtol-to-kstrtol.patch ntfs-remove-null-value-assignments.patch fs-squashfs-squashfsh-replace-pr_warning-by-pr_warn.patch arch-unicore32-mm-ioremapc-convert-printk-warn_on-to-warn1.patch arch-unicore32-mm-ioremapc-convert-printk-warn_on-to-warn1-fix.patch arch-unicore32-mm-ioremapc-return-null-on-invalid-pfn.patch fs-configs-itemc-kernel-doc-fixes-clean-up.patch fs-configfs-convert-printk-to-pr_foo.patch fs-configfs-use-pr_fmt.patch ocfs2-remove-null-assignments-on-static.patch fs-ocfs2-superc-use-ocfs2_max_vol_label_len-and-strlcpy.patch fs-9p-v9fsc-add-__init-to-v9fs_sysfs_init.patch fs-9p-kerneldoc-fixes.patch fs-add-generic-data-flush-to-fsync.patch fs-add-generic-data-flush-to-fsync-fix.patch fs-ext4-fsyncc-generic_file_fsync-call-based-on-barrier-flag.patch mm-slubc-convert-printk-to-pr_foo.patch mm-slubc-convert-vnsprintf-static-to-va_format.patch mm-memory_hotplugc-use-pfn_down.patch mm-memblockc-use-pfn_down.patch mm-memcontrolc-remove-null-assignment-on-static.patch mm-vmallocc-replace-seq_printf-by-seq_puts.patch mm-mempolicyc-parameter-doc-uniformization.patch mm-zbudc-make-size-unsigned-like-unique-callsite.patch sys_sgetmask-sys_ssetmask-add-config_sgetmask_syscall.patch fs-efivarfs-superc-use-static-const-for-dentry_operations.patch fs-exportfs-expfsc-kernel-doc-warning-fixes.patch kernel-cpuc-convert-printk-to-pr_foo.patch kernel-backtracetestc-replace-no-level-printk-by-pr_info.patch kernel-capabilityc-code-clean-up.patch kernel-exec_domainc-code-clean-up.patch kernel-latencytopc-convert-seq_printf-to-seq_puts.patch kernel-stop_machinec-kernel-doc-warning-fix.patch kernel-tracepointc-kernel-doc-fixes.patch kernel-res_counterc-replace-simple_strtoull-by-kstrtoull.patch kernel-res_counterc-replace-simple_strtoull-by-kstrtoull-fix.patch kernel-rebootc-convert-simple_strtoul-to-kstrtoint.patch kernel-utsname_sysctlc-replace-obsolete-__initcall-by-device_initcall.patch kernel-hung_taskc-convert-simple_strtoul-to-kstrtouint.patch documentation-expand-clarify-debug-documentation.patch lib-libcrc32cc-use-ptr_err_or_zero.patch lib-vsprintfc-fix-comparison-to-bool.patch kernel-compatc-use-sizeof-instead-of-sizeof.patch fs-efs-convert-printk-to-pr_foo.patch fs-efs-add-pr_fmt-use-__func__.patch fs-efs-convert-printkkern_debug-to-pr_debug.patch fs-binfmt_elfc-fix-bool-assignements.patch fs-autofs4-dev-ioctlc-add-__init-to-autofs_dev_ioctl_init.patch fs-befs-linuxvfsc-replace-strncpy-by-strlcpy.patch fs-befs-btreec-replace-strncpy-by-strlcpy-coding-style-fixing.patch fs-befs-linuxvfsc-remove-positive-test-on-sector_t.patch fs-befs-kernel-doc-fixes.patch
fs-isofs-logging-clean-up.patch fs-coda-replace-printk-by-pr_foo.patch fs-coda-logging-prefix-uniformization.patch fs-coda-use-__func__.patch fs-ufs-ballocc-remove-err-parameter-in-ufs_add_fragments.patch fs-hpfs-convert-printk-to-pr_foo.patch fs-hpfs-use-pr_fmt-for-logging.patch fs-hpfs-use-__func__-for-logging.patch kernel-kexecc-convert-printk-to-pr_foo.patch kernel-user_namespacec-kernel-doc-checkpatch-fixes.patch fs-affs-filec-remove-unnecessary-function-parameters.patch fs-affs-convert-printk-to-pr_foo.patch fs-affs-pr_debug-cleanup.patch kernel-profilec-convert-printk-to-pr_foo.patch kernel-profilec-use-static-const-char-instead-of-static-char.patch fs-pstore-logging-clean-up.patch fs-pstore-logging-clean-up-fix.patch fs-cachefiles-convert-printk-to-pr_foo.patch fs-cachefiles-replace-kerror-by-pr_err.patch fs-devpts-inodec-convert-printk-to-pr_foo.patch kernel-seccompc-kernel-doc-warning-fix.patch
linux-next.patch kernel-watchdogc-convert-printk-pr_warning-to-pr_foo.patch init-mainc-code-clean-up.patch fs-reiserfs-bitmapc-coding-style-fixes.patch fs-reiserfs-streec-remove-obsolete-__constant.patch kernel-kprobesc-convert-printk-to-pr_foo.patch ufs-sb-mutex-merge-mutex_destroy.patch