aboutsummaryrefslogtreecommitdiff
path: root/plat/hisilicon/hikey/hisi_ipc.c
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-09 15:30:28 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-10 09:36:18 +0100
commit6a23356c4f70d1407c094ea2ea3e21e8a657c1c3 (patch)
tree9c4a91db6023f9550efe01b8e742bdb59dcc7ca6 /plat/hisilicon/hikey/hisi_ipc.c
parent73bc6e77f11ec5616863d3cd987a7088e69c188b (diff)
downloadtrusted-firmware-a-6a23356c4f70d1407c094ea2ea3e21e8a657c1c3.tar.gz
Replace stdio.h functions by TF functions
Functions provided by stdio.h such as printf and sprintf are available in the codebase, but they add a lot of code to the final image if they are used: - AArch64: ~4KB - AArch32: ~2KB in T32, ~3KB in A32 tf_printf and tf_snprintf are a lot more simple, but it is preferable to use them when possible because they are also used in common code. Change-Id: Id09fd2b486198fe3d79276e2c27931595b7ba60e Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org> Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'plat/hisilicon/hikey/hisi_ipc.c')
-rw-r--r--plat/hisilicon/hikey/hisi_ipc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plat/hisilicon/hikey/hisi_ipc.c b/plat/hisilicon/hikey/hisi_ipc.c
index 0469a08b98..4936f83169 100644
--- a/plat/hisilicon/hikey/hisi_ipc.c
+++ b/plat/hisilicon/hikey/hisi_ipc.c
@@ -1,16 +1,16 @@
/*
- * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <arch_helpers.h>
+#include <debug.h>
#include <hisi_ipc.h>
#include <hisi_sram_map.h>
#include <mmio.h>
#include <platform_def.h>
#include <stdarg.h>
-#include <stdio.h>
#include <string.h>
static int ipc_init;
@@ -63,7 +63,7 @@ int hisi_cpus_powered_off_besides_curr(unsigned int cpu)
static void hisi_ipc_send(unsigned int ipc_num)
{
if (!ipc_init) {
- printf("error ipc base is null!!!\n");
+ tf_printf("error ipc base is null!!!\n");
return;
}