Skip to content

Commit

Permalink
mm/swapfile.c: fix debugging information problem
Browse files Browse the repository at this point in the history
Once the function name is changed, it may be easy to forget to modify the
corresponding code here.

Link: https://lkml.kernel.org/r/1611369120-2276-1-git-send-email-stephenzhangzsd@gmail.com
Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Stephen Zhang authored and Linus Torvalds committed Feb 24, 2021
1 parent 191a722 commit cf532fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,13 +1157,13 @@ static struct swap_info_struct *__swap_info_get(swp_entry_t entry)
return p;

bad_offset:
pr_err("swap_info_get: %s%08lx\n", Bad_offset, entry.val);
pr_err("%s: %s%08lx\n", __func__, Bad_offset, entry.val);
goto out;
bad_device:
pr_err("swap_info_get: %s%08lx\n", Unused_file, entry.val);
pr_err("%s: %s%08lx\n", __func__, Unused_file, entry.val);
goto out;
bad_nofile:
pr_err("swap_info_get: %s%08lx\n", Bad_file, entry.val);
pr_err("%s: %s%08lx\n", __func__, Bad_file, entry.val);
out:
return NULL;
}
Expand All @@ -1180,7 +1180,7 @@ static struct swap_info_struct *_swap_info_get(swp_entry_t entry)
return p;

bad_free:
pr_err("swap_info_get: %s%08lx\n", Unused_offset, entry.val);
pr_err("%s: %s%08lx\n", __func__, Unused_offset, entry.val);
out:
return NULL;
}
Expand Down

0 comments on commit cf532fa

Please sign in to comment.