mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 02:17:47 +00:00
[cli] update OutputSpaces() to use literal format string (#8394)
This commit updates `OutputSpaces()` to use literal format string.
This commit is contained in:
@@ -111,11 +111,7 @@ void Output::OutputNewLine(void)
|
||||
|
||||
void Output::OutputSpaces(uint8_t aCount)
|
||||
{
|
||||
char format[sizeof("%256s")];
|
||||
|
||||
snprintf(format, sizeof(format), "%%%us", aCount);
|
||||
|
||||
OutputFormat(format, "");
|
||||
OutputFormat("%*s", aCount, "");
|
||||
}
|
||||
|
||||
void Output::OutputBytes(const uint8_t *aBytes, uint16_t aLength)
|
||||
|
||||
Reference in New Issue
Block a user