From eeb18b583660ae7dac7359f7bcd119cbaf4b7ddb Mon Sep 17 00:00:00 2001 From: ThinkPad-T460P Date: Fri, 19 Feb 2021 09:44:30 +0800 Subject: [PATCH] optimize timestamp of log output to a fixed length --- Middlewares/Log/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Middlewares/Log/log.c b/Middlewares/Log/log.c index 278a31d..362f3d3 100644 --- a/Middlewares/Log/log.c +++ b/Middlewares/Log/log.c @@ -43,7 +43,7 @@ void Log(LogLevel_t level,LogPositon_t positon,char *format,...) case pmb:{ printf("PMB: ") ; }break; default: { printf("Undefined Position: ") ;}break; } - printf("%u | ",osKernelGetTickCount()); + printf("%8u | ",osKernelGetTickCount()); va_list args; va_start( args, format ); print(0, format, args );