core: fix a snprintf truncation warning in debug printfsSigned-off-by: Brice Goglin <Brice.Goglin@inria.fr>(cherry picked from commit 9c05109b776232409fa746f74dfc228fb083f245)