summaryrefslogtreecommitdiff
authorStark Li <stark.li@amlogic.com>2017-01-25 02:24:41 (GMT)
committer Stark Li <stark.li@amlogic.com>2017-01-25 02:40:55 (GMT)
commit5d03c54e8d3c2a3d60790efafe19f5c28d52ee92 (patch)
tree7d64e47ca62812ec241be2e5834a112187f24407
parent5e16505e28fbeb3700732416613c6abdcc39410d (diff)
downloadhwcomposer-5d03c54e8d3c2a3d60790efafe19f5c28d52ee92.zip
hwcomposer-5d03c54e8d3c2a3d60790efafe19f5c28d52ee92.tar.gz
hwcomposer-5d03c54e8d3c2a3d60790efafe19f5c28d52ee92.tar.bz2
PD#138457: change ETRACE to DTRACE
Change-Id: I76703b9a570b4d785ad1c02c3db1a896218a97ca
Diffstat
-rw-r--r--hwc2/common/devices/PhysicalDevice.cpp16
-rw-r--r--hwc2/common/utils/HwcTrace.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/hwc2/common/devices/PhysicalDevice.cpp b/hwc2/common/devices/PhysicalDevice.cpp
index 74e950e..04ea2fe 100644
--- a/hwc2/common/devices/PhysicalDevice.cpp
+++ b/hwc2/common/devices/PhysicalDevice.cpp
@@ -1057,7 +1057,7 @@ int32_t PhysicalDevice::validateDisplay(uint32_t* outNumTypes,
reinterpret_cast<private_handle_t const*>(layer->getBufferHandle());
if (hnd) {
if (!(hnd->flags & private_handle_t::PRIV_FLAGS_CONTINUOUS_BUF)) {
- ETRACE("continous buffer flag is not set!");
+ DTRACE("continous buffer flag is not set!");
isContinuousBuf = false;
}
if (hnd && layer->getCompositionType() == HWC2_COMPOSITION_DEVICE) {
@@ -1080,7 +1080,7 @@ int32_t PhysicalDevice::validateDisplay(uint32_t* outNumTypes,
// cursor layer.
if (layer->getCompositionType() == HWC2_COMPOSITION_CURSOR) {
- ETRACE("This is a Cursor layer!");
+ DTRACE("This is a Cursor layer!");
mHwcLayersChangeRequest.add(layerId, layer);
continue;
}
@@ -1089,7 +1089,7 @@ int32_t PhysicalDevice::validateDisplay(uint32_t* outNumTypes,
if (layer->getCompositionType() == HWC2_COMPOSITION_SIDEBAND
&& layer->getSidebandStream()) {
// TODO: we just transact SIDEBAND to OVERLAY for now;
- ETRACE("get HWC_SIDEBAND layer, just change to overlay");
+ DTRACE("get HWC_SIDEBAND layer, just change to overlay");
mHwcLayersChangeRequest.add(layerId, layer);
mHwcLayersChangeType.add(layerId, layer);
continue;
@@ -1097,7 +1097,7 @@ int32_t PhysicalDevice::validateDisplay(uint32_t* outNumTypes,
// TODO: solid color.
if (layer->getCompositionType() == HWC2_COMPOSITION_SOLID_COLOR) {
- ETRACE("This is a Solid Color layer!");
+ DTRACE("This is a Solid Color layer!");
// mHwcLayersChangeRequest.add(layerId, layer);
// mHwcLayersChangeType.add(layerId, layer);
mHwcGlesLayers.add(layerId, layer);
@@ -1105,7 +1105,7 @@ int32_t PhysicalDevice::validateDisplay(uint32_t* outNumTypes,
}
if (layer->getCompositionType() == HWC2_COMPOSITION_CLIENT) {
- ETRACE("Meet a client layer!");
+ DTRACE("Meet a client layer!");
glesCompose = true;
}
}
@@ -1113,7 +1113,7 @@ int32_t PhysicalDevice::validateDisplay(uint32_t* outNumTypes,
bool noDevComp = Utils::checkBoolProp("sys.sf.debug.nohwc");
#ifndef USE_CONTINOUS_BUFFER_COMPOSER
- ETRACE("No continous buffer composer!");
+ DTRACE("No continous buffer composer!");
noDevComp = true;
#endif
@@ -1139,7 +1139,7 @@ int32_t PhysicalDevice::validateDisplay(uint32_t* outNumTypes,
}
if (mHwcLayersChangeRequest.size() > 0) {
- ETRACE("There are %d layer requests.", mHwcLayersChangeRequest.size());
+ DTRACE("There are %d layer requests.", mHwcLayersChangeRequest.size());
*outNumRequests = mHwcLayersChangeRequest.size();
}
@@ -1147,7 +1147,7 @@ int32_t PhysicalDevice::validateDisplay(uint32_t* outNumTypes,
mIsValidated = true;
if (mHwcLayersChangeType.size() > 0) {
- ETRACE("there are %d layer types has changed.", mHwcLayersChangeType.size());
+ DTRACE("there are %d layer types has changed.", mHwcLayersChangeType.size());
*outNumTypes = mHwcLayersChangeType.size();
return HWC2_ERROR_HAS_CHANGES;
}
diff --git a/hwc2/common/utils/HwcTrace.h b/hwc2/common/utils/HwcTrace.h
index 9626fa3..a7ccaec 100644
--- a/hwc2/common/utils/HwcTrace.h
+++ b/hwc2/common/utils/HwcTrace.h
@@ -48,7 +48,7 @@ extern "C" {
#define ITRACE(fmt,...) ((void)0)
#define WTRACE(fmt,...) ((void)0)
#endif
-#define ETRACE(fmt,...) ALOGE("%s: " fmt, __func__, ##__VA_ARGS__)
+#define ETRACE(fmt,...) ALOGE(fmt, ##__VA_ARGS__)
// Function call tracing