aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/arm/cci
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2017-04-06 14:46:38 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2017-04-06 14:46:38 +0100
commit38aecbb43e47ca82af6ac485207ff6d0b9eeb306 (patch)
tree078a9e470fa3bd7d32fa53a7fd318a4bc52b0434 /drivers/arm/cci
parent90e0ffd367c0e06bf42b323e78d7f4e455419a9e (diff)
downloadplatform_external_arm-trusted-firmware-38aecbb43e47ca82af6ac485207ff6d0b9eeb306.tar.gz
platform_external_arm-trusted-firmware-38aecbb43e47ca82af6ac485207ff6d0b9eeb306.tar.bz2
platform_external_arm-trusted-firmware-38aecbb43e47ca82af6ac485207ff6d0b9eeb306.zip
Replace tf_printf occurrences with ERROR
The amount of console output is controlled by the LOG_LEVEL build option. Using tf_printf without any #ifdef depending on the LOG_LEVEL doesn't give the user that flexibility. This patch replaces all occurrences of tf_printf that prints error, but aren't dependent on LOG_LEVEL, with the ERROR macro. Change-Id: Ib5147f14fc1579398a11f19ddd0e840ff6692831 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'drivers/arm/cci')
-rw-r--r--drivers/arm/cci/cci.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/arm/cci/cci.c b/drivers/arm/cci/cci.c
index 2e773a98b..122e6b5f4 100644
--- a/drivers/arm/cci/cci.c
+++ b/drivers/arm/cci/cci.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -54,20 +54,19 @@ static int validate_cci_map(const int *map)
continue;
if (slave_if_id >= CCI_SLAVE_INTERFACE_COUNT) {
- tf_printf("Slave interface ID is invalid\n");
+ ERROR("Slave interface ID is invalid\n");
return 0;
}
if (valid_cci_map & (1 << slave_if_id)) {
- tf_printf("Multiple masters are assigned same"
- " slave interface ID\n");
+ ERROR("Multiple masters are assigned same slave interface ID\n");
return 0;
}
valid_cci_map |= 1 << slave_if_id;
}
if (!valid_cci_map) {
- tf_printf("No master is assigned a valid slave interface\n");
+ ERROR("No master is assigned a valid slave interface\n");
return 0;
}