aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/partition
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-16 16:46:06 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-22 10:26:05 +0100
commit39b6cc66d670be41d6b51b644beb675f386a4240 (patch)
treeddf5b68804ea9548ea75fe38108eeb6c790afd8c /drivers/partition
parent870ce3ddd3b33c59418a7dba703e8a66ec75f98f (diff)
downloadplatform_external_arm-trusted-firmware-39b6cc66d670be41d6b51b644beb675f386a4240.tar.gz
platform_external_arm-trusted-firmware-39b6cc66d670be41d6b51b644beb675f386a4240.tar.bz2
platform_external_arm-trusted-firmware-39b6cc66d670be41d6b51b644beb675f386a4240.zip
libc: Use printf and snprintf across codebase
tf_printf and tf_snprintf are now called printf and snprintf, so the code needs to be updated. Change-Id: Iffeee97afcd6328c4c2d30830d4923b964682d71 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'drivers/partition')
-rw-r--r--drivers/partition/partition.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/partition/partition.c b/drivers/partition/partition.c
index 5a338b8d9..d6fb4b8e4 100644
--- a/drivers/partition/partition.c
+++ b/drivers/partition/partition.c
@@ -11,6 +11,7 @@
#include <mbr.h>
#include <partition.h>
#include <platform.h>
+#include <stdio.h>
#include <string.h>
static uint8_t mbr_sector[PARTITION_BLOCK_SIZE];
@@ -24,7 +25,7 @@ static void dump_entries(int num)
VERBOSE("Partition table with %d entries:\n", num);
for (i = 0; i < num; i++) {
- len = tf_snprintf(name, EFI_NAMELEN, "%s", list.list[i].name);
+ len = snprintf(name, EFI_NAMELEN, "%s", list.list[i].name);
for (j = 0; j < EFI_NAMELEN - len - 1; j++) {
name[len + j] = ' ';
}