summaryrefslogtreecommitdiff
path: root/fs/nffs/src/nffs_restore.c
diff options
context:
space:
mode:
authorChristopher Collins <ccollins@apache.org>2016-04-19 14:19:19 -0700
committerChristopher Collins <ccollins@apache.org>2016-04-19 14:32:23 -0700
commit1a6f234c6a3e99e4c84d6cb80b13e6bf9d3aff43 (patch)
tree0a081ef8f53cdc2e835b63e46ded4b7df83f349b /fs/nffs/src/nffs_restore.c
parent2f430d3c9cf6014e2fd1928af07358c5d96abbea (diff)
nffs - Only build logging code if LOG_LEVEL is low enough.
Diffstat (limited to 'fs/nffs/src/nffs_restore.c')
-rw-r--r--fs/nffs/src/nffs_restore.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/nffs/src/nffs_restore.c b/fs/nffs/src/nffs_restore.c
index 8f9c9f85..28ea39a7 100644
--- a/fs/nffs/src/nffs_restore.c
+++ b/fs/nffs/src/nffs_restore.c
@@ -975,10 +975,13 @@ nffs_restore_corrupt_scratch(void)
return 0;
}
-#ifdef notnow
static void
nffs_log_contents(void)
{
+#if LOG_LEVEL > LOG_LEVEL_DEBUG
+ return;
+#endif
+
struct nffs_inode_entry *inode_entry;
struct nffs_hash_entry *entry;
struct nffs_block block;
@@ -1030,7 +1033,6 @@ nffs_log_contents(void)
}
}
}
-#endif
/**
* Searches for a valid nffs file system among the specified areas. This
@@ -1168,10 +1170,9 @@ nffs_restore_full(const struct nffs_area_desc *area_descs)
goto err;
}
-#ifdef notnow
NFFS_LOG(DEBUG, "CONTENTS\n");
nffs_log_contents();
-#endif
+
return 0;
err: