Turn old debug printf() into a proper log_err()