mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
drivers/note: Change 0/1 to false/true
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
abfeafa876
commit
f196d108bf
@@ -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 *)¬e->nbi_data[next];
|
var = (FAR void *)¬e->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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user