Start to consolidate logging into host-common/logging.h

... to make it easier to enable debug logging for Gfxstream

Bug: b/189133053
Test: presubmit build
Change-Id: I4f0e6bb32c68714085edc955890dd50cda072e58
diff --git a/stream-servers/apigen-codec-common/glUtils.cpp b/stream-servers/apigen-codec-common/glUtils.cpp
index 3dd921c..80d292e 100644
--- a/stream-servers/apigen-codec-common/glUtils.cpp
+++ b/stream-servers/apigen-codec-common/glUtils.cpp
@@ -14,10 +14,12 @@
 * limitations under the License.
 */
 #include "glUtils.h"
-#include "ErrorLog.h"
+
 #include <string.h>
 #include <GLES3/gl31.h>
 
+#include "host-common/logging.h"
+
 size_t glSizeof(GLenum type)
 {
     size_t retval = 0;
@@ -118,7 +120,7 @@
         retval = 4 + 4;
         break;
     default:
-        ERR("**** ERROR unknown type 0x%x (%s,%d)\n", type, __FUNCTION__,__LINE__);
+        ERR("**** ERROR unknown type 0x%x", type);
         retval = 4;
     }
     return retval;
@@ -372,7 +374,7 @@
         s = 16;
     break;
     default:
-        ERR("glUtilsParamSize: unknow param 0x%08x\n", param);
+        ERR("glUtilsParamSize: unknown param 0x%08x", param);
         s = 1; // assume 1
     }
     return s;
@@ -424,7 +426,7 @@
         pixelsize = 32;
         break;
     default:
-        ERR("glUtilsPixelBitSize: unknown pixel type - assuming pixel data 0\n");
+        ERR("glUtilsPixelBitSize: unknown pixel type - assuming pixel data 0");
         componentsize = 0;
     }
 
@@ -455,7 +457,7 @@
             components = 4;
             break;
         default:
-            ERR("glUtilsPixelBitSize: unknown pixel format...\n");
+            ERR("glUtilsPixelBitSize: unknown pixel format...");
             components = 0;
         }
         pixelsize = components * componentsize;