From: "Manish Katiyar" Subject: [PATCH] ext2 : Use __func__ for function names in ext2_error messages Date: Tue, 1 Jul 2008 00:26:14 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: linux-ext4@vger.kernel.org, LKML , kernel-janitors@vger.kernel.org Return-path: Received: from wf-out-1314.google.com ([209.85.200.174]:65258 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754496AbYF3S4P (ORCPT ); Mon, 30 Jun 2008 14:56:15 -0400 Received: by wf-out-1314.google.com with SMTP id 27so1666058wfd.4 for ; Mon, 30 Jun 2008 11:56:14 -0700 (PDT) Content-Disposition: inline Sender: linux-ext4-owner@vger.kernel.org List-ID: ============================================================ Signed-off-by : Manish Katiyar --- fs/ext2/dir.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index a78c6b4..bf3c467 100644 --- a/fs/ext2/dir.c +++ b/fs/ext2/dir.c @@ -146,7 +146,7 @@ out: /* Too bad, we had an error */ Ebadsize: - ext2_error(sb, "ext2_check_page", + ext2_error(sb, __func__, "size of directory #%lu is not a multiple of chunk size", dir->i_ino ); @@ -166,7 +166,7 @@ Espan: Einumber: error = "inode out of bounds"; bad_entry: - ext2_error (sb, "ext2_check_page", "bad entry in directory #%lu: %s - " + ext2_error (sb, __func__, "bad entry in directory #%lu: %s - " "offset=%lu, inode=%lu, rec_len=%d, name_len=%d", dir->i_ino, error, (page->index<inode), @@ -174,7 +174,7 @@ bad_entry: goto fail; Eend: p = (ext2_dirent *)(kaddr + offs); - ext2_error (sb, "ext2_check_page", + ext2_error (sb, __func__, "entry in directory #%lu spans the page boundary" "offset=%lu, inode=%lu", dir->i_ino, (page->index<