Log which partitions are enabled

Change-Id: I2d44aa010d62e020e9ddca9d91b8320bdaecac15
Signed-off-by: Chris Brand <chris.brand@cypress.com>
diff --git a/tools/tfm_parse_manifest_list.py b/tools/tfm_parse_manifest_list.py
index f1b5367..baf136b 100644
--- a/tools/tfm_parse_manifest_list.py
+++ b/tools/tfm_parse_manifest_list.py
@@ -273,6 +273,8 @@
                 dict['list_path'] = manifest_lists[i + 1]
                 all_manifests.append(dict)
 
+    logging.info("------------ Display partition configuration - start ------------")
+
     # Parse the manifests
     for i, manifest_item in enumerate(all_manifests):
         valid_enabled_conditions  = ['on',  'true',  'enabled']
@@ -282,12 +284,15 @@
         if 'conditional' in manifest_item.keys():
             is_enabled = str(manifest_item['conditional']).lower()
         else:
-            # Partitions without 'conditional' is alwasy on
+            # Partitions without 'conditional' are always on
             is_enabled = 'on'
 
         if is_enabled in valid_disabled_conditions:
+            logging.info("{} partition is disabled".format(manifest_item['name']))
             continue
-        elif is_enabled not in valid_enabled_conditions:
+        elif is_enabled in valid_enabled_conditions:
+            logging.info("{} partition is enabled".format(manifest_item['name']))
+        else:
             raise Exception('Invalid "conditional" attribute: "{}" for {}. '
                             'Please set to one of {} or {}, case-insensitive.'\
                             .format(manifest_item['conditional'],
@@ -382,6 +387,8 @@
                                'loadinfo_file': load_info_file,
                                'output_dir':output_dir})
 
+    logging.info("------------ Display partition configuration - end ------------")
+
     check_circular_dependency(partition_list, service_partition_map)
 
     # Automatically assign PIDs for partitions without 'pid' attribute