core: use single function for early debug

Change-Id: I246b1602fa51bb005925b0dca0dc505849bc221f
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>