Skip to content

Commit

Permalink
Handle escaped percent sign (%%)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 30, 2023
1 parent 21ae214 commit 5749950
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esp-wifi/src/compat/syslog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ pub(crate) unsafe fn vsnprintf(
}
}

'%' => {
res_str.append_char('%');
}

_ => {
write!(res_str, "<UNKNOWN{}>", format_char).ok();
}
Expand Down

0 comments on commit 5749950

Please sign in to comment.