From f196d108bf237ddaeb90db41a0709ecf75dd3167 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 5 Oct 2023 20:02:51 +0800 Subject: [PATCH] drivers/note: Change 0/1 to false/true Signed-off-by: Xiang Xiao --- drivers/note/note_driver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c index 2438d63d4e..a67d68cbcc 100644 --- a/drivers/note/note_driver.c +++ b/drivers/note/note_driver.c @@ -1535,7 +1535,7 @@ void sched_note_vbprintf_ip(uint32_t tag, uintptr_t ip, uint8_t event, char c; int length; - bool search_fmt = 0; + bool infmt = false; int next = 0; 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') { - if (c != '%' && search_fmt == 0) + if (c != '%' && !infmt) { continue; } - search_fmt = 1; + infmt = true; var = (FAR void *)¬e->nbi_data[next]; 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); } - search_fmt = 0; + infmt = false; } 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 } - search_fmt = 0; + infmt = false; } }