1bf215546Sopenharmony_ci/* 2bf215546Sopenharmony_ci * Copyright (C) 2017 The Android Open Source Project 3bf215546Sopenharmony_ci * 4bf215546Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 5bf215546Sopenharmony_ci * you may not use this file except in compliance with the License. 6bf215546Sopenharmony_ci * You may obtain a copy of the License at 7bf215546Sopenharmony_ci * 8bf215546Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 9bf215546Sopenharmony_ci * 10bf215546Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 11bf215546Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 12bf215546Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13bf215546Sopenharmony_ci * See the License for the specific language governing permissions and 14bf215546Sopenharmony_ci * limitations under the License. 15bf215546Sopenharmony_ci */ 16bf215546Sopenharmony_ci 17bf215546Sopenharmony_ci#pragma once 18bf215546Sopenharmony_ci 19bf215546Sopenharmony_ci#include <stdint.h> 20bf215546Sopenharmony_ci 21bf215546Sopenharmony_ci#ifdef __cplusplus 22bf215546Sopenharmony_ciextern "C" { 23bf215546Sopenharmony_ci#endif 24bf215546Sopenharmony_ci 25bf215546Sopenharmony_ci#define android_errorWriteLog(tag, subTag) \ 26bf215546Sopenharmony_ci __android_log_error_write(tag, subTag, -1, NULL, 0) 27bf215546Sopenharmony_ci 28bf215546Sopenharmony_ci#define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \ 29bf215546Sopenharmony_ci __android_log_error_write(tag, subTag, uid, data, dataLen) 30bf215546Sopenharmony_ci 31bf215546Sopenharmony_ciint __android_log_error_write(int tag, const char* subTag, int32_t uid, 32bf215546Sopenharmony_ci const char* data, uint32_t dataLen); 33bf215546Sopenharmony_ci 34bf215546Sopenharmony_ci#ifdef __cplusplus 35bf215546Sopenharmony_ci} 36bf215546Sopenharmony_ci#endif 37