mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 02:15:14 +00:00
xlat lib v2: Fix sign of debug loop variable
This patch changes the sign of the loop variable used in xlat_tables_print(). It needs to be unsigned because it is compared against another unsigned int. Change-Id: I2b3cee7990dd75e8ebd2701de3860ead7cad8dc8 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
This commit is contained in:
@@ -1123,7 +1123,7 @@ void xlat_tables_print(xlat_ctx_t *ctx)
|
||||
int used_page_tables;
|
||||
#if PLAT_XLAT_TABLES_DYNAMIC
|
||||
used_page_tables = 0;
|
||||
for (int i = 0; i < ctx->tables_num; ++i) {
|
||||
for (unsigned int i = 0; i < ctx->tables_num; ++i) {
|
||||
if (ctx->tables_mapped_regions[i] != 0)
|
||||
++used_page_tables;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user