Use the official centerprint function

Signed-off-by: Gerco van Heerdt <gercovanheerdt@gmail.com>