core/debug: fix printf barrier comparison