Unionfs: use __func__ instead of __FUNCTION__
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 01:47:35 +0000 (21:47 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 29 Apr 2011 02:26:06 +0000 (22:26 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/dentry.c
fs/unionfs/union.h

index f8f65e1034fa3271274916156982cfb48c0c1568..5e498c2c861eefab6059229d7744cdf71488b07f 100644 (file)
@@ -406,7 +406,7 @@ bool __unionfs_d_revalidate_chain(struct dentry *dentry, struct nameidata *nd,
        chain = kzalloc(chain_len * sizeof(struct dentry *), GFP_KERNEL);
        if (unlikely(!chain)) {
                printk(KERN_CRIT "unionfs: no more memory in %s\n",
-                      __FUNCTION__);
+                      __func__);
                goto out;
        }
 
index 4562f5b2fb58223b1d657640bac1bc2caea2a8fb..ecf417d6fe99b2078f8748a5ac96728c18aca5f3 100644 (file)
@@ -564,24 +564,24 @@ static inline void unionfs_mntput(struct dentry *dentry, int bindex)
 #ifdef CONFIG_UNION_FS_DEBUG
 
 /* useful for tracking code reachability */
-#define UDBG pr_debug("DBG:%s:%s:%d\n", __FILE__, __FUNCTION__, __LINE__)
+#define UDBG pr_debug("DBG:%s:%s:%d\n", __FILE__, __func__, __LINE__)
 
 #define unionfs_check_inode(i) __unionfs_check_inode((i),      \
-       __FILE__, __FUNCTION__, __LINE__)
+       __FILE__, __func__, __LINE__)
 #define unionfs_check_dentry(d)        __unionfs_check_dentry((d),     \
-       __FILE__, __FUNCTION__, __LINE__)
+       __FILE__, __func__, __LINE__)
 #define unionfs_check_file(f)  __unionfs_check_file((f),       \
-       __FILE__, __FUNCTION__, __LINE__)
+       __FILE__, __func__, __LINE__)
 #define unionfs_check_nd(n)    __unionfs_check_nd((n),         \
-       __FILE__, __FUNCTION__, __LINE__)
+       __FILE__, __func__, __LINE__)
 #define show_branch_counts(sb) __show_branch_counts((sb),      \
-       __FILE__, __FUNCTION__, __LINE__)
+       __FILE__, __func__, __LINE__)
 #define show_inode_times(i)    __show_inode_times((i),         \
-       __FILE__, __FUNCTION__, __LINE__)
+       __FILE__, __func__, __LINE__)
 #define show_dinode_times(d)   __show_dinode_times((d),        \
-       __FILE__, __FUNCTION__, __LINE__)
+       __FILE__, __func__, __LINE__)
 #define show_inode_counts(i)   __show_inode_counts((i),        \
-       __FILE__, __FUNCTION__, __LINE__)
+       __FILE__, __func__, __LINE__)
 
 extern void __unionfs_check_inode(const struct inode *inode, const char *fname,
                                  const char *fxn, int line);