Skip to content
Commit 94f680d3 authored by Keith Packard's avatar Keith Packard Committed by Carles Cufí
Browse files

samples/philosophers: Build status string with snprintk



Picolibc doesn't have any output buffering for printk, so the various
pieces of the status line would get interleaved between threads. Build the
whole line in memory using snprintk and then print it in a single printk
call.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 0e003cdb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment