From a1ca066aece168432e2048ccaa45cfba566bfa30 Mon Sep 17 00:00:00 2001 From: szaka Date: Tue, 15 Jul 2008 14:29:52 +0000 Subject: [PATCH] ntfs_ie_add(): #ifdef DEBUG debug code (Yura Pakhuchiy) --- libntfs-3g/index.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libntfs-3g/index.c b/libntfs-3g/index.c index fc8e4ac2..2e804514 100644 --- a/libntfs-3g/index.c +++ b/libntfs-3g/index.c @@ -1421,14 +1421,16 @@ static int ntfs_ib_split(ntfs_index_context *icx, INDEX_BLOCK *ib) static int ntfs_ie_add(ntfs_index_context *icx, INDEX_ENTRY *ie) { - char *fn; INDEX_HEADER *ih; int allocated_size, new_size; int ret = STATUS_ERROR; +#ifdef DEBUG + char *fn; fn = ntfs_ie_filename_get(ie); ntfs_log_trace("file: '%s'\n", fn); ntfs_attr_name_free(&fn); +#endif while (1) {