From 5749950501e9cc473fc8945ca3afb09bca02a7a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Sun, 29 Oct 2023 15:40:13 +0100 Subject: [PATCH] Handle escaped percent sign (%%) --- esp-wifi/src/compat/syslog.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esp-wifi/src/compat/syslog.rs b/esp-wifi/src/compat/syslog.rs index 545438fd..8997c9e0 100644 --- a/esp-wifi/src/compat/syslog.rs +++ b/esp-wifi/src/compat/syslog.rs @@ -167,6 +167,10 @@ pub(crate) unsafe fn vsnprintf( } } + '%' => { + res_str.append_char('%'); + } + _ => { write!(res_str, "", format_char).ok(); }