log: scope log strings to usages

log strings should be scoped to where its used for clarity on use but it
also reduces the object code size by not needing the log string table
always included.

Signed-off-by: William Roberts <william.c.roberts@intel.com>
diff --git a/src/util/log.c b/src/util/log.c
index 76899eb..5d9da53 100644
--- a/src/util/log.c
+++ b/src/util/log.c
@@ -21,6 +21,16 @@
 #define unlikely(x)     (x)
 #endif
 
+static const char *log_strings[] = {
+    "none",
+    "(unused)",
+    "ERROR",
+    "WARNING",
+    "info",
+    "debug",
+    "trace"
+};
+
 /**
  * Compares two strings byte by byte and ignores the
  * character's case. Stops at the n-th byte of both
diff --git a/src/util/log.h b/src/util/log.h
index 75ed719..2d24330 100644
--- a/src/util/log.h
+++ b/src/util/log.h
@@ -31,16 +31,6 @@
     LOGLEVEL_UNDEFINED = LOGL_UNDEF
 } log_level;
 
-static const char *log_strings[] COMPILER_ATTR(unused) = {
-    "none",
-    "(unused)",
-    "ERROR",
-    "WARNING",
-    "info",
-    "debug",
-    "trace"
-};
-
 #define xstr(s) str(s)
 #define str(s) #s