/* * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _UTIL_LOG_H #define _UTIL_LOG_H #include "stdio.h" #include #define CC_COMMON_OK 0 #define WORD_BYTE_SIZE (sizeof(uint32_t)) #define UTIL_LOG_ERR(format, args...) \ fprintf(stderr, "%s(): " format, __FUNCTION__, ##args) #ifdef UTIL_DEBUG #define UTIL_LOG_INFO UTIL_LOG_ERR #define UTIL_LOG_BYTE_BUFF(str, buff, size) {\ uint32_t i=0;\ unsigned long buff_addr = (unsigned long)buff;\ UTIL_LOG_ERR("\nprinting %s, %lu bytes", str, (unsigned long)size);\ for (i=0; i