Commit cb7ada82 authored by Oleg Drokin's avatar Oleg Drokin

reiserfs_fs.h, namei.c, bitmap.c:

  fix __FUNCTION__ usage, since its use as string literals is deprecated now.
parent 51ae531c
...@@ -689,7 +689,7 @@ void reiserfs_discard_prealloc (struct reiserfs_transaction_handle *th, ...@@ -689,7 +689,7 @@ void reiserfs_discard_prealloc (struct reiserfs_transaction_handle *th,
struct reiserfs_inode_info *ei = REISERFS_I(inode); struct reiserfs_inode_info *ei = REISERFS_I(inode);
#ifdef CONFIG_REISERFS_CHECK #ifdef CONFIG_REISERFS_CHECK
if (ei->i_prealloc_count < 0) if (ei->i_prealloc_count < 0)
reiserfs_warning("zam-4001:" __FUNCTION__ ": inode has negative prealloc blocks count.\n"); reiserfs_warning("zam-4001:%s inode has negative prealloc blocks count.\n", __FUNCTION__);
#endif #endif
if (ei->i_prealloc_count > 0) { if (ei->i_prealloc_count > 0) {
__discard_prealloc(th, ei); __discard_prealloc(th, ei);
...@@ -705,7 +705,7 @@ void reiserfs_discard_all_prealloc (struct reiserfs_transaction_handle *th) ...@@ -705,7 +705,7 @@ void reiserfs_discard_all_prealloc (struct reiserfs_transaction_handle *th)
ei = list_entry(plist->next, struct reiserfs_inode_info, i_prealloc_list); ei = list_entry(plist->next, struct reiserfs_inode_info, i_prealloc_list);
#ifdef CONFIG_REISERFS_CHECK #ifdef CONFIG_REISERFS_CHECK
if (!ei->i_prealloc_count) { if (!ei->i_prealloc_count) {
reiserfs_warning("zam-4001:" __FUNCTION__ ": inode is in prealloc list but has no preallocated blocks.\n"); reiserfs_warning("zam-4001:%s: inode is in prealloc list but has no preallocated blocks.\n", __FUNCTION__);
} }
#endif #endif
__discard_prealloc(th, ei); __discard_prealloc(th, ei);
......
...@@ -296,7 +296,7 @@ static int reiserfs_find_entry (struct inode * dir, const char * name, int namel ...@@ -296,7 +296,7 @@ static int reiserfs_find_entry (struct inode * dir, const char * name, int namel
while (1) { while (1) {
retval = search_by_entry_key (dir->i_sb, &key_to_search, path_to_entry, de); retval = search_by_entry_key (dir->i_sb, &key_to_search, path_to_entry, de);
if (retval == IO_ERROR) { if (retval == IO_ERROR) {
reiserfs_warning ("zam-7001: io error in " __FUNCTION__ "\n"); reiserfs_warning ("zam-7001: io error in %s\n", __FUNCTION__);
return IO_ERROR; return IO_ERROR;
} }
...@@ -468,8 +468,8 @@ static int reiserfs_add_entry (struct reiserfs_transaction_handle *th, struct in ...@@ -468,8 +468,8 @@ static int reiserfs_add_entry (struct reiserfs_transaction_handle *th, struct in
} }
if (retval != NAME_FOUND) { if (retval != NAME_FOUND) {
reiserfs_warning ("zam-7002:" __FUNCTION__ ": \"reiserfs_find_entry\" has returned" reiserfs_warning ("zam-7002:%s: \"reiserfs_find_entry\" has returned"
" unexpected value (%d)\n", retval); " unexpected value (%d)\n", __FUNCTION__, retval);
} }
return -EEXIST; return -EEXIST;
......
...@@ -80,8 +80,8 @@ ...@@ -80,8 +80,8 @@
#define RASSERT( cond, format, args... ) \ #define RASSERT( cond, format, args... ) \
if( !( cond ) ) \ if( !( cond ) ) \
reiserfs_panic( 0, "reiserfs[%i]: assertion " #cond " failed at " \ reiserfs_panic( 0, "reiserfs[%i]: assertion " #cond " failed at " \
__FILE__ ":%i:" __FUNCTION__ ": " format "\n", \ __FILE__ ":%i:%s: " format "\n", \
in_interrupt() ? -1 : current -> pid, __LINE__ , ##args ) in_interrupt() ? -1 : current -> pid, __LINE__ , __FUNCTION__ , ##args )
#if defined( CONFIG_REISERFS_CHECK ) #if defined( CONFIG_REISERFS_CHECK )
#define RFALSE( cond, format, args... ) RASSERT( !( cond ), format, ##args ) #define RFALSE( cond, format, args... ) RASSERT( !( cond ), format, ##args )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment