diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:37:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:13 -0400 |
commit | 9606d9aa858aeb70f3b6062bab82eb1e5a91a923 (patch) | |
tree | c43260ed9796dbf4f5882e05e3c36cb2521f62c7 /fs/affs/inode.c | |
parent | 0158de12b00e7f0e7821c706e91477b6079eb9e9 (diff) |
fs/affs: pr_debug cleanup
- Remove AFFS: prefix (defined in pr_fmt)
- Use __func__
- Separate format/arguments on lines > 80 characters.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/affs/inode.c')
-rw-r--r-- | fs/affs/inode.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/affs/inode.c b/fs/affs/inode.c index 96df91e8c334..bec2d1a0c91c 100644 --- a/fs/affs/inode.c +++ b/fs/affs/inode.c | |||
@@ -34,7 +34,7 @@ struct inode *affs_iget(struct super_block *sb, unsigned long ino) | |||
34 | if (!(inode->i_state & I_NEW)) | 34 | if (!(inode->i_state & I_NEW)) |
35 | return inode; | 35 | return inode; |
36 | 36 | ||
37 | pr_debug("AFFS: affs_iget(%lu)\n", inode->i_ino); | 37 | pr_debug("affs_iget(%lu)\n", inode->i_ino); |
38 | 38 | ||
39 | block = inode->i_ino; | 39 | block = inode->i_ino; |
40 | bh = affs_bread(sb, block); | 40 | bh = affs_bread(sb, block); |
@@ -175,7 +175,7 @@ affs_write_inode(struct inode *inode, struct writeback_control *wbc) | |||
175 | uid_t uid; | 175 | uid_t uid; |
176 | gid_t gid; | 176 | gid_t gid; |
177 | 177 | ||
178 | pr_debug("AFFS: write_inode(%lu)\n",inode->i_ino); | 178 | pr_debug("write_inode(%lu)\n", inode->i_ino); |
179 | 179 | ||
180 | if (!inode->i_nlink) | 180 | if (!inode->i_nlink) |
181 | // possibly free block | 181 | // possibly free block |
@@ -220,7 +220,7 @@ affs_notify_change(struct dentry *dentry, struct iattr *attr) | |||
220 | struct inode *inode = dentry->d_inode; | 220 | struct inode *inode = dentry->d_inode; |
221 | int error; | 221 | int error; |
222 | 222 | ||
223 | pr_debug("AFFS: notify_change(%lu,0x%x)\n",inode->i_ino,attr->ia_valid); | 223 | pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid); |
224 | 224 | ||
225 | error = inode_change_ok(inode,attr); | 225 | error = inode_change_ok(inode,attr); |
226 | if (error) | 226 | if (error) |
@@ -258,7 +258,8 @@ void | |||
258 | affs_evict_inode(struct inode *inode) | 258 | affs_evict_inode(struct inode *inode) |
259 | { | 259 | { |
260 | unsigned long cache_page; | 260 | unsigned long cache_page; |
261 | pr_debug("AFFS: evict_inode(ino=%lu, nlink=%u)\n", inode->i_ino, inode->i_nlink); | 261 | pr_debug("evict_inode(ino=%lu, nlink=%u)\n", |
262 | inode->i_ino, inode->i_nlink); | ||
262 | truncate_inode_pages_final(&inode->i_data); | 263 | truncate_inode_pages_final(&inode->i_data); |
263 | 264 | ||
264 | if (!inode->i_nlink) { | 265 | if (!inode->i_nlink) { |
@@ -271,7 +272,7 @@ affs_evict_inode(struct inode *inode) | |||
271 | affs_free_prealloc(inode); | 272 | affs_free_prealloc(inode); |
272 | cache_page = (unsigned long)AFFS_I(inode)->i_lc; | 273 | cache_page = (unsigned long)AFFS_I(inode)->i_lc; |
273 | if (cache_page) { | 274 | if (cache_page) { |
274 | pr_debug("AFFS: freeing ext cache\n"); | 275 | pr_debug("freeing ext cache\n"); |
275 | AFFS_I(inode)->i_lc = NULL; | 276 | AFFS_I(inode)->i_lc = NULL; |
276 | AFFS_I(inode)->i_ac = NULL; | 277 | AFFS_I(inode)->i_ac = NULL; |
277 | free_page(cache_page); | 278 | free_page(cache_page); |
@@ -350,7 +351,8 @@ affs_add_entry(struct inode *dir, struct inode *inode, struct dentry *dentry, s3 | |||
350 | u32 block = 0; | 351 | u32 block = 0; |
351 | int retval; | 352 | int retval; |
352 | 353 | ||
353 | pr_debug("AFFS: add_entry(dir=%u, inode=%u, \"%*s\", type=%d)\n", (u32)dir->i_ino, | 354 | pr_debug("%s(dir=%u, inode=%u, \"%*s\", type=%d)\n", |
355 | __func__, (u32)dir->i_ino, | ||
354 | (u32)inode->i_ino, (int)dentry->d_name.len, dentry->d_name.name, type); | 356 | (u32)inode->i_ino, (int)dentry->d_name.len, dentry->d_name.name, type); |
355 | 357 | ||
356 | retval = -EIO; | 358 | retval = -EIO; |