hwc: Minor bug fixes.
Some minor bug fixes.
Change-Id: Ie8c2f58b9c6db6e77739e4693da503f6f963827d
diff --git a/libhwcomposer/hwc_uevents.cpp b/libhwcomposer/hwc_uevents.cpp
index f9e8a2d..3c1707b 100644
--- a/libhwcomposer/hwc_uevents.cpp
+++ b/libhwcomposer/hwc_uevents.cpp
@@ -17,9 +17,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#define DEBUG 0
-#ifndef HWC_OBSERVER_H
-#define HWC_OBSERVER_H
+#define UEVENT_DEBUG 0
#include <hardware_legacy/uevent.h>
#include <utils/Log.h>
#include <sys/resource.h>
@@ -43,7 +41,7 @@
int hdmiconnected = ctx->mExtDisplay->getExternalDisplay();
if(!strcasestr(str, "@/devices/virtual/graphics/fb")) {
- ALOGD_IF(DEBUG, "%s: Not Ext Disp Event ", __FUNCTION__);
+ ALOGD_IF(UEVENT_DEBUG, "%s: Not Ext Disp Event ", __FUNCTION__);
return;
}
@@ -113,4 +111,3 @@
}
}; //namespace
-#endif //HWC_OBSERVER_H