Skip to content

Commit a56e85b

Browse files
anishnair-armprashymh
authored andcommitted
log: fix print level check for display table output
- The display table output functions logs at ACS_PRINT_INFO level, but was gated by an ACS_PRINT_DEBUG condition. - Change the check to ACS_PRINT_INFO for consistency and improved efficiency. Change-Id: Id1f1f4bca7665b7a7fa447261f7f20db3cef6dea
1 parent b38da15 commit a56e85b

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

pal/baremetal/base/src/pal_hmat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ void pal_hmat_create_info_table(HMAT_INFO_TABLE *HmatTable)
9696
}
9797
}
9898

99-
if (g_print_level <= ACS_PRINT_DEBUG)
99+
if (g_print_level <= ACS_PRINT_INFO)
100100
pal_hmat_dump_info_table(HmatTable);
101101
}

pal/baremetal/base/src/pal_iovirt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ pal_iovirt_create_info_table(IOVIRT_INFO_TABLE *IoVirtTable)
290290
block = &(IoVirtTable->blocks[0]);
291291
print(ACS_PRINT_DEBUG, " Number of IOVIRT blocks = %d\n", IoVirtTable->num_blocks);
292292

293-
if (g_print_level <= ACS_PRINT_DEBUG) {
293+
if (g_print_level <= ACS_PRINT_INFO) {
294294
for (i = 0; i < IoVirtTable->num_blocks; i++, block = IOVIRT_NEXT_BLOCK(block))
295295
{
296296
dump_block(block);

pal/baremetal/base/src/pal_mpam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pal_mpam_create_info_table(MPAM_INFO_TABLE *MpamTable)
154154
curr_entry = MPAM_NEXT_MSC(curr_entry);
155155
}
156156

157-
if (g_print_level <= ACS_PRINT_DEBUG)
157+
if (g_print_level <= ACS_PRINT_INFO)
158158
pal_mpam_dump_table(MpamTable);
159159
}
160160

@@ -209,6 +209,6 @@ pal_srat_create_info_table(SRAT_INFO_TABLE *SratTable)
209209
Ptr++;
210210
}
211211

212-
if (g_print_level <= ACS_PRINT_DEBUG)
212+
if (g_print_level <= ACS_PRINT_INFO)
213213
pal_srat_dump_table(SratTable);
214214
}

pal/baremetal/base/src/pal_pcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pal_pcc_create_info_table(PCC_INFO_TABLE *PccInfoTable)
130130
curr_entry++;
131131
}
132132

133-
if (g_print_level <= ACS_PRINT_DEBUG)
133+
if (g_print_level <= ACS_PRINT_INFO)
134134
pal_pcc_dump_info_table(PccInfoTable);
135135

136136
return;

pal/baremetal/base/src/pal_pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pal_pmu_create_info_table(PMU_INFO_TABLE *PmuTable)
9393
}
9494

9595
/* Dump PMU info table */
96-
if (g_print_level <= ACS_PRINT_DEBUG)
96+
if (g_print_level <= ACS_PRINT_INFO)
9797
pal_pmu_dump_info_table(PmuTable);
9898
}
9999
}

pal/baremetal/base/src/pal_pptt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,6 @@ pal_cache_create_info_table(CACHE_INFO_TABLE *CacheTable, PE_INFO_TABLE *PeTable
136136

137137
pal_cache_store_pe_res(CacheTable, PeTable);
138138

139-
if (g_print_level <= ACS_PRINT_DEBUG)
139+
if (g_print_level <= ACS_PRINT_INFO)
140140
pal_cache_dump_info_table(CacheTable, PeTable);
141141
}

pal/baremetal/base/src/pal_ras.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pal_ras_create_info_table(RAS_INFO_TABLE *RasInfoTable)
236236
curr_node++;
237237
}
238238

239-
if (g_print_level <= ACS_PRINT_DEBUG)
239+
if (g_print_level <= ACS_PRINT_INFO)
240240
pal_ras_dump_info_table(RasInfoTable);
241241
}
242242

@@ -333,6 +333,6 @@ pal_ras2_create_info_table(RAS2_INFO_TABLE *RasFeatInfoTable)
333333
RasFeatInfoTable->num_all_block++;
334334
}
335335

336-
if (g_print_level <= ACS_PRINT_DEBUG)
336+
if (g_print_level <= ACS_PRINT_INFO)
337337
pal_ras2_dump_info_table(RasFeatInfoTable);
338338
}

val/driver/smmu_v3/smmu_v3.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ static int smmu_cdtab_write_ctx_desc(smmu_master_t *master,
10241024

10251025
cdptr[0] = val;
10261026

1027-
if (g_print_level <= ACS_PRINT_DEBUG)
1027+
if (g_print_level <= ACS_PRINT_INFO)
10281028
dump_cdtab(cdptr);
10291029

10301030
return 1;
@@ -1212,7 +1212,7 @@ uint64_t val_smmu_map(smmu_master_attributes_t master_attr, pgt_descriptor_t pgt
12121212
ste = smmu_strtab_get_ste_for_sid(smmu, master->sid);
12131213
smmu_strtab_write_ste(master, ste);
12141214

1215-
if (g_print_level <= ACS_PRINT_DEBUG)
1215+
if (g_print_level <= ACS_PRINT_INFO)
12161216
dump_strtab(ste);
12171217

12181218
smmu_tlbi_cfgi(smmu);
@@ -1240,7 +1240,7 @@ uint32_t val_smmu_config_ste_dcp(smmu_master_attributes_t master_attr, uint32_t
12401240
else
12411241
ste[1] = ste[1] & BITFIELD_SET(STRTAB_STE_1_DCP, value);
12421242

1243-
if (g_print_level <= ACS_PRINT_DEBUG)
1243+
if (g_print_level <= ACS_PRINT_INFO)
12441244
{
12451245
val_print(ACS_PRINT_INFO, "\n Dump STE values", 0);
12461246
dump_strtab(ste);

val/src/acs_peripherals.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ val_peripheral_create_info_table(uint64_t *peripheral_info_table)
300300
val_print(ACS_PRINT_TEST, " Peripheral: Num of UART controllers : %d\n",
301301
val_peripheral_get_info(NUM_UART, 0));
302302

303-
if (g_print_level <= ACS_PRINT_DEBUG)
303+
if (g_print_level <= ACS_PRINT_INFO)
304304
val_peripheral_dump_info();
305305

306306
}

0 commit comments

Comments
 (0)