misc: Fix print calls to be compatible with 3.x
misc/profiling: Use 3.x print function