diff options
author | relan <relan@users.noreply.github.com> | 2009-10-05 17:42:08 +0000 |
---|---|---|
committer | relan <relan@users.noreply.github.com> | 2015-08-24 08:26:10 +0300 |
commit | 81fe770a18604ff9ffc7269d74a4c73784da8161 (patch) | |
tree | 1a983cf05e3d0d03eeeb13478161d97b6a55ce48 /fsck | |
parent | 7d4f05ff7d833ece42d3e489dd4aa804c4c313c1 (diff) | |
download | android_external_exfat-81fe770a18604ff9ffc7269d74a4c73784da8161.tar.gz android_external_exfat-81fe770a18604ff9ffc7269d74a4c73784da8161.tar.bz2 android_external_exfat-81fe770a18604ff9ffc7269d74a4c73784da8161.zip |
Fix debug output in fsck.
Diffstat (limited to 'fsck')
-rw-r--r-- | fsck/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fsck/main.c b/fsck/main.c index bd40d77..a8dd10d 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -72,16 +72,16 @@ static void dirck(struct exfat* ef, const char* path) exfat_opendir(parent, &it); while (exfat_readdir(ef, parent, &node, &it) == 0) { - exfat_debug("%s/%s: %s, %llu bytes, cluster %u", path, node->name, + strcpy(subpath, path); + strcat(subpath, "/"); + exfat_get_name(node, subpath + strlen(subpath), + EXFAT_NAME_MAX - strlen(subpath)); + exfat_debug("%s: %s, %llu bytes, cluster %u", subpath, IS_CONTIGUOUS(*node) ? "contiguous" : "fragmented", node->size, node->start_cluster); if (node->flags & EXFAT_ATTRIB_DIR) { directories_count++; - strcpy(subpath, path); - strcat(subpath, "/"); - exfat_get_name(node, subpath + strlen(subpath), - EXFAT_NAME_MAX - strlen(subpath)); dirck(ef, subpath); } else |