BugID:16967023:[ref-impl/hal] fix print format of newline and prefix
#include "iotx_log.h"
-#define hal_emerg HAL_Printf
-#define hal_crit HAL_Printf
-#define hal_err HAL_Printf
-#define hal_warning HAL_Printf
-#define hal_info HAL_Printf
-#define hal_debug HAL_Printf
+#define hal_emerg(...) HAL_Printf("[prt] "), HAL_Printf(__VA_ARGS__), HAL_Printf("\r\n")
+#define hal_crit(...) HAL_Printf("[prt] "), HAL_Printf(__VA_ARGS__), HAL_Printf("\r\n")
+#define hal_err(...) HAL_Printf("[prt] "), HAL_Printf(__VA_ARGS__), HAL_Printf("\r\n")
+#define hal_warning(...) HAL_Printf("[prt] "), HAL_Printf(__VA_ARGS__), HAL_Printf("\r\n")
+#define hal_info(...) HAL_Printf("[prt] "), HAL_Printf(__VA_ARGS__), HAL_Printf("\r\n")
+#define hal_debug(...) HAL_Printf("[prt] "), HAL_Printf(__VA_ARGS__), HAL_Printf("\r\n")
#endif /* __PLATFORM_DEBUG_H__ */
