Platform: Fix warnings around stdio_output_string()
Prototype of string literals should be const char *, so
amend the definition of stdio_output_string() to avoid
un-necessary castings in various places in the code.
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I7f2a6bad1b331ac36754594ceb1ca4595adb9775
diff --git a/lib/tfm_vprintf/inc/tfm_vprintf.h b/lib/tfm_vprintf/inc/tfm_vprintf.h
index 0678b10..ed0cc25 100644
--- a/lib/tfm_vprintf/inc/tfm_vprintf.h
+++ b/lib/tfm_vprintf/inc/tfm_vprintf.h
@@ -44,7 +44,7 @@
#define LOG_MARKER_VERBOSE "\x32" /* 50 */
/* Function called to output a string to the terminal */
-typedef void (*tfm_log_output_str)(void *priv, const unsigned char *str, uint32_t len);
+typedef void (*tfm_log_output_str)(void *priv, const char *str, uint32_t len);
/* Function to generate formatted string and pass to output_func */
void tfm_vprintf(tfm_log_output_str output_func, void *priv, const char *fmt, va_list args);