Description: dotting function add

Sig:appexecfwk
Feature or Bugfix:Bugfix
Binary Source:No
#I4ZDPU;
Signed-off-by: wuluofeng <wuluofeng@huawei.com>
This commit is contained in:
吴珞风
2022-03-24 09:51:08 +00:00
committed by Gitee
parent cca15633e3
commit 5eefd14721
3 changed files with 14 additions and 11 deletions
@@ -12,6 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef AAFWK_PRODUCT_ADAPTER_H #define AAFWK_PRODUCT_ADAPTER_H
#define AAFWK_PRODUCT_ADAPTER_H #define AAFWK_PRODUCT_ADAPTER_H
#include <cstdint>
@@ -43,3 +45,4 @@ public:
static void PrintErrCode(uint8_t info2, uint16_t rfu);
};
} // namespace OHOS
#endif
+5 -5
View File
@@ -17,23 +17,23 @@
#include "aafwk_product_adapter.h"
namespace OHOS {
AafwkEventCodePrint *AafwkEventCodePrint::GetInstance()
AafwkEventErrorCode *AafwkEventErrorCode::GetInstance()
{
static AafwkEventCodePrint printInstance;
static AafwkEventErrorCode printInstance;
return &printInstance;
}
void AafwkEventCodePrint::AafwkEventPrint(uint8_t info2, uint8_t info3)
void AafwkEventErrorCode::AafwkEventPrint(uint8_t info2, uint8_t info3)
{
AafwkProductAdapter::PrintEventTrace(0, info2, info3);
}
void AafwkEventCodePrint::AafwkEventPrint(uint8_t info1, uint8_t info2, uint8_t info3)
void AafwkEventErrorCode::AafwkEventPrint(uint8_t info1, uint8_t info2, uint8_t info3)
{
AafwkProductAdapter::PrintEventTrace(info1, info2, info3);
}
void AafwkEventCodePrint::AafwkErrorPrint(uint8_t info1, uint16_t info2)
void AafwkEventErrorCode::AafwkErrorPrint(uint8_t info1, uint16_t info2)
{
AafwkProductAdapter::PrintErrCode(info1, info2);
}
+6 -6
View File
@@ -18,18 +18,18 @@
namespace OHOS {
#define APP_EVENT(code1) \
AafwkEventCodePrint::GetInstance()->AafwkEventPrint(code1, 0)
AafwkEventErrorCode::GetInstance()->AafwkEventPrint(code1, 0)
#define APP_ERRCODE_EXTRA(code1, code2) \
AafwkEventCodePrint::GetInstance()->AafwkErrorPrint(code1, code2)
AafwkEventErrorCode::GetInstance()->AafwkErrorPrint(code1, code2)
class AafwkEventCodePrint {
class AafwkEventErrorCode {
public:
AafwkEventCodePrint() = default;
AafwkEventErrorCode() = default;
~AafwkEventCodePrint() = default;
~AafwkEventErrorCode() = default;
static AafwkEventCodePrint *GetInstance();
static AafwkEventErrorCode *GetInstance();
void AafwkEventPrint(uint8_t info2, uint8_t info3);