OSDN Git Service

osi: Fix compile error due to API change on AOSP
authorArman Uguray <armansito@google.com>
Tue, 14 Jul 2015 19:32:33 +0000 (12:32 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 14 Jul 2015 20:33:18 +0000 (20:33 +0000)
All LOG_* functions require a first argument "tag", which was added on AOSP.

Change-Id: I2e678baa5da1cbf7073291983a0339dade6abca8

osi/src/config.c

index d9ac70d..ce1d6c9 100644 (file)
@@ -286,7 +286,7 @@ bool config_save(const config_t *config, const char *filename) {
 
   // Change the file's permissions to Read/Write by User and Group
   if (chmod(temp_filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == -1) {
-    LOG_ERROR("%s unable to change file permissions '%s': %s", __func__, filename, strerror(errno));
+    LOG_ERROR(LOG_TAG, "%s unable to change file permissions '%s': %s", __func__, filename, strerror(errno));
     goto error;
   }