bfCheckJavaMemory: use 'warning' instead of 'fprintf' for logging