Fix invalid log format 36/133536/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 12 Jun 2017 22:26:17 +0000 (07:26 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 12 Jun 2017 22:27:11 +0000 (07:27 +0900)
Change-Id: I8be9bf7d21f165bba14a594bf084097a6ed16d11
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
plugin/app2sd/server/app2sd_interface.c
plugin/app2sd/server/app2sd_internals.c
plugin/app2sd/server/app2sd_internals_utils.c

index 56b06f5..11888fe 100644 (file)
@@ -837,7 +837,7 @@ int app2sd_usr_pre_move_installed_app(const char *pkgid,
                                INSTALL_EXTERNAL, image_path, uid);
                if (pkgmgr_ret < 0) {
                        _E("failed to update installed location to db " \
-                               "[%s, %s] of uid(%d), pkgmgr_ret(%d)",
+                               "[%s, %d] of uid(%d), pkgmgr_ret(%d)",
                                pkgid, INSTALL_EXTERNAL, uid, pkgmgr_ret);
                        return APP2EXT_ERROR_PKGMGR_ERROR;
                }
@@ -846,7 +846,7 @@ int app2sd_usr_pre_move_installed_app(const char *pkgid,
                                INSTALL_INTERNAL, image_path, uid);
                if (pkgmgr_ret < 0) {
                        _E("failed to update installed location to db " \
-                               "[%s, %s] of uid(%d), pkgmgr_ret(%d)",
+                               "[%s, %d] of uid(%d), pkgmgr_ret(%d)",
                                pkgid, INSTALL_INTERNAL, uid, pkgmgr_ret);
                        return APP2EXT_ERROR_PKGMGR_ERROR;
                }
index 2efddc5..12d213d 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 
+#define _GNU_SOURCE
 #include <dirent.h>
 #include <time.h>
 #include <pwd.h>
index 3387b49..3867a44 100644 (file)
@@ -195,7 +195,7 @@ int _app2sd_copy_dir(const char *src, const char *dest)
                        _W("src(%s) not exist, skip!", src);
                        return ret;
                } else {
-                       _E("failed to open src(%s) dir, errno(%d)", errno);
+                       _E("failed to open src(%s) dir, errno(%d)", src, errno);
                        return APP2EXT_ERROR_ACCESS_FILE;
                }
        }
@@ -208,7 +208,8 @@ int _app2sd_copy_dir(const char *src, const char *dest)
                        _E("dest(%s) not exist, failed!", dest);
                        return APP2EXT_ERROR_ACCESS_FILE;
                } else {
-                       _E("failed to open dest(%s) dir, errno(%d)", errno);
+                       _E("failed to open dest(%s) dir, errno(%d)",
+                                       dest, errno);
                        return APP2EXT_ERROR_ACCESS_FILE;
                }
        }