diff options
author | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2017-08-01 09:16:38 +0100 |
---|---|---|
committer | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2017-08-01 09:18:51 +0100 |
commit | 664e69311e0ad0f38de3f635d6d338f2d0d64e14 (patch) | |
tree | a01a1a9289e674a9748df95514d91b2119ec5548 /lib/xlat_tables_v2 | |
parent | de3d704d74018b7104afad5a9b4cb19bc5de0611 (diff) | |
download | platform_external_arm-trusted-firmware-664e69311e0ad0f38de3f635d6d338f2d0d64e14.tar.gz platform_external_arm-trusted-firmware-664e69311e0ad0f38de3f635d6d338f2d0d64e14.tar.bz2 platform_external_arm-trusted-firmware-664e69311e0ad0f38de3f635d6d338f2d0d64e14.zip |
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>
Diffstat (limited to 'lib/xlat_tables_v2')
-rw-r--r-- | lib/xlat_tables_v2/xlat_tables_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xlat_tables_v2/xlat_tables_internal.c b/lib/xlat_tables_v2/xlat_tables_internal.c index 940337bef..cd6e11c03 100644 --- a/lib/xlat_tables_v2/xlat_tables_internal.c +++ b/lib/xlat_tables_v2/xlat_tables_internal.c @@ -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; } |