Fix build warning on Linux native.

Change-Id: Id994888dc4be9cf9df44c3cf6222847d6422543b
diff --git a/libopensles/trace.c b/libopensles/trace.c
index 00e50ec..63dba7d 100644
--- a/libopensles/trace.c
+++ b/libopensles/trace.c
@@ -52,7 +52,7 @@
         if (*underscore == '_') {
             if (strcmp(function, "BufferQueue_Enqueue") && strcmp(function, "BufferQueue_GetState")
                 && strcmp(function, "OutputMixExt_FillBuffer") ) {
-                LOGV("Entering %.*s::%s\n", underscore - function, function, &underscore[1]);
+                LOGV("Entering %.*s::%s\n", (int) (underscore - function), function, &underscore[1]);
             }
             return;
         }
@@ -70,10 +70,10 @@
         while (*underscore != '\0') {
             if (*underscore == '_') {
                 if (SLESUT_RESULT_MAX > result)
-                    LOGE("Leaving %.*s::%s (%s)\n", underscore - function, function,
+                    LOGE("Leaving %.*s::%s (%s)\n", (int) (underscore - function), function,
                         &underscore[1], slesutResultStrings[result]);
                 else
-                    LOGE("Leaving %.*s::%s (0x%X)\n", underscore - function, function,
+                    LOGE("Leaving %.*s::%s (0x%X)\n", (int) (underscore - function), function,
                         &underscore[1], (unsigned) result);
                 return;
             }