From 71b1b585b8e126ff6df998bed3c4c10bb3eaca80 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Mon, 1 Dec 2008 18:52:22 +0000 Subject: [PATCH] ifdef debug code --- source/partition.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/partition.c b/source/partition.c index a782609..36a8303 100644 --- a/source/partition.c +++ b/source/partition.c @@ -256,10 +256,14 @@ PARTITION* _FAT_partition_getPartitionFromPath (const char* path) { devops = GetDeviceOpTab (path); if (!devops) { -iprintf ("\n%s %d\n", __FILE__, __LINE__); +#ifdef FAT_DEBUG + iprintf ("\n%s %d\n", __FILE__, __LINE__); +#endif return NULL; } -iprintf ("\n%s %d\n", __FILE__, __LINE__); +#ifdef FAT_DEBUG + iprintf ("\n%s %d\n", __FILE__, __LINE__); +#endif return (PARTITION*)devops->deviceData; }