From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 11/11] ext4: switch debug and printf to dev_xxx
Date: Fri, 8 Mar 2013 12:59:43 +0100 [thread overview]
Message-ID: <1362743983-11462-11-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <1362743983-11462-1-git-send-email-plagnioj@jcrosoft.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
fs/ext4/ext4_common.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index f426118..ceb965f 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -89,7 +89,7 @@ static int ext4fs_blockgroup(struct ext2_data *data, int group,
group / desc_per_blk;
blkoff = (group % desc_per_blk) * sizeof(struct ext2_block_group);
- debug("ext4fs read %d group descriptor (blkno %ld blkoff %u)\n",
+ dev_dbg(fs->dev, "read %d group descriptor (blkno %ld blkoff %u)\n",
group, blkno, blkoff);
return ext4fs_devread(fs, blkno << LOG2_EXT2_BLOCK_SIZE(data),
@@ -139,7 +139,7 @@ int ext4fs_get_indir_block(struct ext2fs_node *node, struct ext4fs_indir_block *
ret = ext4fs_devread(fs, blkno, 0, blksz, (void *)indir->data);
if (ret) {
- printf("** SI ext2fs read block (indir 1)"
+ dev_err(fs->dev, "** SI ext2fs read block (indir 1)"
"failed. **\n");
return ret;
}
@@ -177,7 +177,7 @@ long int read_allocated_block(struct ext2fs_node *node, int fileblock)
(struct ext4_extent_header *)inode->b.blocks.dir_blocks,
fileblock, log2_blksz);
if (!ext_block) {
- printf("invalid extent block\n");
+ pr_err("invalid extent block\n");
free(buf);
return -EINVAL;
}
@@ -269,10 +269,10 @@ int ext4fs_iterate_dir(struct ext2fs_node *dir, char *name,
unsigned int fpos = 0;
int status, ret;
struct ext2fs_node *diro = (struct ext2fs_node *) dir;
-
+ struct ext_filesystem *fs = dir->data->fs;
if (name != NULL)
- debug("Iterate dir %s\n", name);
+ dev_dbg(fs->dev, "Iterate dir %s\n", name);
if (!diro->inode_read) {
ret = ext4fs_read_inode(diro->data, diro->ino, &diro->inode);
@@ -345,7 +345,7 @@ int ext4fs_iterate_dir(struct ext2fs_node *dir, char *name,
}
}
- debug("iterate >%s<\n", filename);
+ dev_dbg(fs->dev, "iterate >%s<\n", filename);
if (strcmp(filename, name) == 0) {
*ftype = type;
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2013-03-08 12:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 21:54 [PATCH 00/11 v6] introduction of dmesg support Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 8:05 ` Jan Lübbe
2013-03-08 11:59 ` [PATCH 01/11] kfifo: introduce kfifo_dump_str to dump the fifo Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 11:59 ` [PATCH 02/11] console: switch to kfifo_dump_str Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 11:59 ` [PATCH 03/11] intoduce dmesg to print the barebox printk to dmesg ring buffer Jean-Christophe PLAGNIOL-VILLARD
2013-03-09 10:25 ` Sascha Hauer
2013-03-08 11:59 ` [PATCH 04/11] startup: switch to pr_xxx Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 11:59 ` [PATCH 05/11] at91: clock switch to pr_info Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 11:59 ` [PATCH 06/11] meminfo: switch to pr_xxx Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 11:59 ` [PATCH 07/11] net/console: " Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 17:25 ` Sascha Hauer
2013-03-08 17:43 ` Jean-Christophe PLAGNIOL-VILLARD
2013-03-09 10:19 ` Sascha Hauer
2013-03-08 11:59 ` [PATCH 08/11] startup: " Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 11:59 ` [PATCH 09/11] barebox_banner: switch to pr_info Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 11:59 ` [PATCH 10/11] net/phy: convert " Jean-Christophe PLAGNIOL-VILLARD
2013-03-08 11:59 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1362743983-11462-11-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox