[HUST CSE]fix logical error in judgment statement

This commit is contained in:
hustgxj 2023-04-19 23:51:37 +08:00 committed by Man, Jianting (Meco)
parent 56eafc52e8
commit 0ace6078e7
3 changed files with 3 additions and 3 deletions

View File

@ -987,7 +987,7 @@ static int DbgConsole_PrintfFormattedData(PUTCHAR_FUNC func_ptr, const char *fmt
}
else
{
if (0U == (flags_used & (uint32_t)kPRINTF_Pound))
if (0U == (flags_used & (uint32_t)kPRINTF_Minus))
{
if (0U != (flags_used & (uint32_t)kPRINTF_Pound))
{

View File

@ -988,7 +988,7 @@ static int DbgConsole_PrintfFormattedData(PUTCHAR_FUNC func_ptr, const char *fmt
}
else
{
if (0U == (flags_used & (uint32_t)kPRINTF_Pound))
if (0U == (flags_used & (uint32_t)kPRINTF_Minus))
{
if (0U != (flags_used & (uint32_t)kPRINTF_Pound))
{

View File

@ -988,7 +988,7 @@ static int DbgConsole_PrintfFormattedData(PUTCHAR_FUNC func_ptr, const char *fmt
}
else
{
if (0U == (flags_used & (uint32_t)kPRINTF_Pound))
if (0U == (flags_used & (uint32_t)kPRINTF_Minus))
{
if (0U != (flags_used & (uint32_t)kPRINTF_Pound))
{