drivers/note: Change 0/1 to false/true

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-10-05 20:02:51 +08:00
committed by Alan Carvalho de Assis
parent abfeafa876
commit f196d108bf
+5 -5
View File
@@ -1535,7 +1535,7 @@ void sched_note_vbprintf_ip(uint32_t tag, uintptr_t ip, uint8_t event,
char c; char c;
int length; int length;
bool search_fmt = 0; bool infmt = false;
int next = 0; int next = 0;
FAR struct tcb_s *tcb = this_task(); FAR struct tcb_s *tcb = this_task();
@@ -1566,12 +1566,12 @@ void sched_note_vbprintf_ip(uint32_t tag, uintptr_t ip, uint8_t event,
while ((c = *fmt++) != '\0') while ((c = *fmt++) != '\0')
{ {
if (c != '%' && search_fmt == 0) if (c != '%' && !infmt)
{ {
continue; continue;
} }
search_fmt = 1; infmt = true;
var = (FAR void *)&note->nbi_data[next]; var = (FAR void *)&note->nbi_data[next];
if (c == 'd' || c == 'i' || c == 'u' || if (c == 'd' || c == 'i' || c == 'u' ||
@@ -1660,7 +1660,7 @@ void sched_note_vbprintf_ip(uint32_t tag, uintptr_t ip, uint8_t event,
next += sizeof(var->i); next += sizeof(var->i);
} }
search_fmt = 0; infmt = false;
} }
if (c == 'e' || c == 'f' || c == 'g' || if (c == 'e' || c == 'f' || c == 'g' ||
@@ -1703,7 +1703,7 @@ void sched_note_vbprintf_ip(uint32_t tag, uintptr_t ip, uint8_t event,
#endif #endif
} }
search_fmt = 0; infmt = false;
} }
} }