hal: Add support for dynamic logging
Changes to support dynamic logging in hal
Change-Id: I315c919bd940d8ccdb9103eb06bf67c1e3ff3f4b
diff --git a/hal/edid.c b/hal/edid.c
index e889530..f7259c7 100644
--- a/hal/edid.c
+++ b/hal/edid.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014, 2016-2017, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright (C) 2014 The Android Open Source Project
@@ -33,6 +33,12 @@
#include "platform_api.h"
#include "edid.h"
+#ifdef DYNAMIC_LOG_ENABLED
+#include <log_xml_parser.h>
+#define LOG_MASK HAL_MOD_FILE_EDID
+#include <log_utils.h>
+#endif
+
static const char * edid_format_to_str(unsigned char format)
{
char * format_str = "??";
@@ -798,4 +804,4 @@
ALOGV("%s: returns [%d] for highest supported sr",
__func__, highest_sr);
return highest_sr;
-}
\ No newline at end of file
+}