core: remove double const declaration

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
core: add printf compiler attribute

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>