diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-07 01:36:35 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-07 03:08:10 +0400 |
commit | 1749a10e02a9c6ed1a5c0a2860fb9ed132f2cc42 (patch) | |
tree | 56089d573c7b423800af6af0ce6afaad123da6dd /fs/hpfs/dnode.c | |
parent | 14da17f9c4a880e3418f7f04071df3cb2e8636e8 (diff) | |
download | linux-1749a10e02a9c6ed1a5c0a2860fb9ed132f2cc42.tar.xz |
fs/hpfs: use __func__ for logging
Normalize function display fx() using __func__
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hpfs/dnode.c')
-rw-r--r-- | fs/hpfs/dnode.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/hpfs/dnode.c b/fs/hpfs/dnode.c index 69554e208b26..d10c5e91c5b2 100644 --- a/fs/hpfs/dnode.c +++ b/fs/hpfs/dnode.c @@ -17,7 +17,7 @@ static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; i++; } - pr_info("get_pos: not_found\n"); + pr_info("%s(): not_found\n", __func__); return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; } @@ -94,8 +94,8 @@ static void hpfs_pos_ins(loff_t *p, loff_t d, loff_t c) if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { int n = (*p & 0x3f) + c; if (n > 0x3f) - pr_warn("hpfs_pos_ins: %08x + %d\n", - (int)*p, (int)c >> 8); + pr_warn("%s(): %08x + %d\n", + __func__, (int)*p, (int)c >> 8); else *p = (*p & ~0x3f) | n; } @@ -106,8 +106,8 @@ static void hpfs_pos_del(loff_t *p, loff_t d, loff_t c) if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { int n = (*p & 0x3f) - c; if (n < 1) - pr_warn("hpfs_pos_ins: %08x - %d\n", - (int)*p, (int)c >> 8); + pr_warn("%s(): %08x - %d\n", + __func__, (int)*p, (int)c >> 8); else *p = (*p & ~0x3f) | n; } @@ -251,7 +251,7 @@ static int hpfs_add_to_dnode(struct inode *i, dnode_secno dno, } go_up: if (namelen >= 256) { - hpfs_error(i->i_sb, "hpfs_add_to_dnode: namelen == %d", namelen); + hpfs_error(i->i_sb, "%s(): namelen == %d", __func__, namelen); kfree(nd); kfree(nname); return 1; |