Use g_error instead of fpritnf so target like android see it.