9
0
Fork 0

ext4: switch debug and printf to dev_xxx

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2013-03-08 12:59:43 +01:00 committed by Sascha Hauer
parent 1e0787adfa
commit c44eabb109
1 changed files with 6 additions and 6 deletions

View File

@ -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;