Merge "hwc2: Use libdebug defined macros for logging."

This commit is contained in:
Linux Build Service Account
2018-05-04 01:40:51 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 6 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ int HWCSession::Init() {
iqservice->connect(android::sp<qClient::IQClient>(this));
qservice_ = reinterpret_cast<qService::QService *>(iqservice.get());
} else {
ALOGE("%s::%s: Failed to acquire %s", __CLASS__, __FUNCTION__, qservice_name);
DLOGE("Failed to acquire %s", qservice_name);
return -EINVAL;
}
@@ -227,7 +227,7 @@ int HWCSession::Deinit() {
DisplayError error = CoreInterface::DestroyCore();
if (error != kErrorNone) {
ALOGE("Display core de-initialization failed. Error = %d", error);
DLOGE("Display core de-initialization failed. Error = %d", error);
}
return 0;
@@ -235,7 +235,7 @@ int HWCSession::Deinit() {
int HWCSession::Open(const hw_module_t *module, const char *name, hw_device_t **device) {
if (!module || !name || !device) {
ALOGE("%s::%s: Invalid parameters.", __CLASS__, __FUNCTION__);
DLOGE("Invalid parameters.");
return -EINVAL;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -43,10 +43,9 @@ using ::android::hardware::Void;
void HWCSession::StartServices() {
android::status_t status = IDisplayConfig::registerAsService();
if (status != android::OK) {
ALOGW("%s::%s: Could not register IDisplayConfig as service (%d).",
__CLASS__, __FUNCTION__, status);
DLOGW("Could not register IDisplayConfig as service (%d).", status);
} else {
ALOGI("%s::%s: IDisplayConfig service registration completed.", __CLASS__, __FUNCTION__);
DLOGI("IDisplayConfig service registration completed.");
}
}