core: fix format bug in the log callback