From 2a2ac5c9e0f930ddd1585887375d597ab3b08312 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Tue, 14 Jan 2020 15:41:34 +0000 Subject: [PATCH] psa: Ensure spaces before partition name comment The psa_setup.c.tpl jinja template would strip whitespace from before the partition name comment when inserting non-test partition database entries. Fix the template to generate psa_setup.c with the partition name comment properly indented. --- tools/psa/templates/psa_setup.c.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/psa/templates/psa_setup.c.tpl b/tools/psa/templates/psa_setup.c.tpl index 39d6a6a864..54e8ec994f 100644 --- a/tools/psa/templates/psa_setup.c.tpl +++ b/tools/psa/templates/psa_setup.c.tpl @@ -186,7 +186,7 @@ void {{partition.name|lower}}_init(spm_partition_t *partition) {# -------------- spm_db_entry(partition) ----------------------------------- #} {% macro spm_db_entry(partition) -%} -/* {{partition.name|upper}} */ + /* {{partition.name|upper}} */ { .partition_id = {{partition.name|upper}}_ID, .thread_id = 0, @@ -214,7 +214,7 @@ void {{partition.name|lower}}_init(spm_partition_t *partition) /****************** SPM DB initialization *************************************/ spm_partition_t g_partitions[] = { {% for partition in service_partitions %} -{{spm_db_entry(partition)}} + {{spm_db_entry(partition)}} {% endfor %} #ifdef USE_PSA_TEST_PARTITIONS