summaryrefslogtreecommitdiffstats
path: root/cmds/installd
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-05 23:22:43 +0000
committerJean-Baptiste Queru <jbq@google.com>2012-01-19 14:44:59 -0800
commita51f0e707f1f3142358aa919ea60ad2842803139 (patch)
tree3a4bea403affd07f7611fe13da8cbf64a61ee3e3 /cmds/installd
parent933e85615059b85a87747da57288384541cc56da (diff)
downloadframeworks_base-a51f0e707f1f3142358aa919ea60ad2842803139.zip
frameworks_base-a51f0e707f1f3142358aa919ea60ad2842803139.tar.gz
frameworks_base-a51f0e707f1f3142358aa919ea60ad2842803139.tar.bz2
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)
Change-Id: I8fbdfa7a7581f481968dbb65aa40f7042936d7cb
Diffstat (limited to 'cmds/installd')
-rw-r--r--cmds/installd/commands.c34
-rw-r--r--cmds/installd/utils.c4
2 files changed, 19 insertions, 19 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c
index 988fee3..4d80296 100644
--- a/cmds/installd/commands.c
+++ b/cmds/installd/commands.c
@@ -463,7 +463,7 @@ static int wait_dexopt(pid_t pid, const char* apk_path)
}
}
if (got_pid != pid) {
- LOGW("waitpid failed: wanted %d, got %d: %s\n",
+ ALOGW("waitpid failed: wanted %d, got %d: %s\n",
(int) pid, (int) got_pid, strerror(errno));
return 1;
}
@@ -472,7 +472,7 @@ static int wait_dexopt(pid_t pid, const char* apk_path)
ALOGV("DexInv: --- END '%s' (success) ---\n", apk_path);
return 0;
} else {
- LOGW("DexInv: --- END '%s' --- status=0x%04x, process failed\n",
+ ALOGW("DexInv: --- END '%s' --- status=0x%04x, process failed\n",
apk_path, status);
return status; /* always nonzero */
}
@@ -595,7 +595,7 @@ void mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid,
if (mkdir(path, mode) == 0) {
chown(path, uid, gid);
} else {
- LOGW("Unable to make directory %s: %s\n", path, strerror(errno));
+ ALOGW("Unable to make directory %s: %s\n", path, strerror(errno));
}
}
path[basepos] = '/';
@@ -616,7 +616,7 @@ int movefileordir(char* srcpath, char* dstpath, int dstbasepos,
int dstend = strlen(dstpath);
if (lstat(srcpath, statbuf) < 0) {
- LOGW("Unable to stat %s: %s\n", srcpath, strerror(errno));
+ ALOGW("Unable to stat %s: %s\n", srcpath, strerror(errno));
return 1;
}
@@ -631,7 +631,7 @@ int movefileordir(char* srcpath, char* dstpath, int dstbasepos,
return 1;
}
} else {
- LOGW("Unable to rename %s to %s: %s\n",
+ ALOGW("Unable to rename %s to %s: %s\n",
srcpath, dstpath, strerror(errno));
return 1;
}
@@ -640,7 +640,7 @@ int movefileordir(char* srcpath, char* dstpath, int dstbasepos,
d = opendir(srcpath);
if (d == NULL) {
- LOGW("Unable to opendir %s: %s\n", srcpath, strerror(errno));
+ ALOGW("Unable to opendir %s: %s\n", srcpath, strerror(errno));
return 1;
}
@@ -655,12 +655,12 @@ int movefileordir(char* srcpath, char* dstpath, int dstbasepos,
}
if ((srcend+strlen(name)) >= (PKG_PATH_MAX-2)) {
- LOGW("Source path too long; skipping: %s/%s\n", srcpath, name);
+ ALOGW("Source path too long; skipping: %s/%s\n", srcpath, name);
continue;
}
if ((dstend+strlen(name)) >= (PKG_PATH_MAX-2)) {
- LOGW("Destination path too long; skipping: %s/%s\n", dstpath, name);
+ ALOGW("Destination path too long; skipping: %s/%s\n", dstpath, name);
continue;
}
@@ -716,7 +716,7 @@ int movefiles()
} else {
subfd = openat(dfd, name, O_RDONLY);
if (subfd < 0) {
- LOGW("Unable to open update commands at %s%s\n",
+ ALOGW("Unable to open update commands at %s%s\n",
UPDATE_COMMANDS_DIR_PREFIX, name);
continue;
}
@@ -742,7 +742,7 @@ int movefiles()
// skip comments and empty lines.
} else if (hasspace) {
if (dstpkg[0] == 0) {
- LOGW("Path before package line in %s%s: %s\n",
+ ALOGW("Path before package line in %s%s: %s\n",
UPDATE_COMMANDS_DIR_PREFIX, name, buf+bufp);
} else if (srcpkg[0] == 0) {
// Skip -- source package no longer exists.
@@ -758,7 +758,7 @@ int movefiles()
} else {
char* div = strchr(buf+bufp, ':');
if (div == NULL) {
- LOGW("Bad package spec in %s%s; no ':' sep: %s\n",
+ ALOGW("Bad package spec in %s%s; no ':' sep: %s\n",
UPDATE_COMMANDS_DIR_PREFIX, name, buf+bufp);
} else {
*div = 0;
@@ -767,14 +767,14 @@ int movefiles()
strcpy(dstpkg, buf+bufp);
} else {
srcpkg[0] = dstpkg[0] = 0;
- LOGW("Package name too long in %s%s: %s\n",
+ ALOGW("Package name too long in %s%s: %s\n",
UPDATE_COMMANDS_DIR_PREFIX, name, buf+bufp);
}
if (strlen(div) < PKG_NAME_MAX) {
strcpy(srcpkg, div);
} else {
srcpkg[0] = dstpkg[0] = 0;
- LOGW("Package name too long in %s%s: %s\n",
+ ALOGW("Package name too long in %s%s: %s\n",
UPDATE_COMMANDS_DIR_PREFIX, name, div);
}
if (srcpkg[0] != 0) {
@@ -785,7 +785,7 @@ int movefiles()
}
} else {
srcpkg[0] = 0;
- LOGW("Can't create path %s in %s%s\n",
+ ALOGW("Can't create path %s in %s%s\n",
div, UPDATE_COMMANDS_DIR_PREFIX, name);
}
if (srcpkg[0] != 0) {
@@ -802,7 +802,7 @@ int movefiles()
}
} else {
srcpkg[0] = 0;
- LOGW("Can't create path %s in %s%s\n",
+ ALOGW("Can't create path %s in %s%s\n",
div, UPDATE_COMMANDS_DIR_PREFIX, name);
}
}
@@ -815,7 +815,7 @@ int movefiles()
} else {
if (bufp == 0) {
if (bufp < bufe) {
- LOGW("Line too long in %s%s, skipping: %s\n",
+ ALOGW("Line too long in %s%s, skipping: %s\n",
UPDATE_COMMANDS_DIR_PREFIX, name, buf);
}
} else if (bufp < bufe) {
@@ -825,7 +825,7 @@ int movefiles()
}
readlen = read(subfd, buf+bufe, PKG_PATH_MAX-bufe);
if (readlen < 0) {
- LOGW("Failure reading update commands in %s%s: %s\n",
+ ALOGW("Failure reading update commands in %s%s: %s\n",
UPDATE_COMMANDS_DIR_PREFIX, name, strerror(errno));
break;
} else if (readlen == 0) {
diff --git a/cmds/installd/utils.c b/cmds/installd/utils.c
index a53a93c..940626e 100644
--- a/cmds/installd/utils.c
+++ b/cmds/installd/utils.c
@@ -83,7 +83,7 @@ int create_pkg_path(char path[PKG_PATH_MAX],
if (persona != 0) {
int ret = snprintf(dst, dst_size, "%d/", persona);
if (ret < 0 || (size_t) ret != uid_len + 1) {
- LOGW("Error appending UID to APK path");
+ ALOGW("Error appending UID to APK path");
return -1;
}
}
@@ -326,7 +326,7 @@ int get_path_from_env(dir_rec_t* rec, const char* var) {
const char* path = getenv(var);
int ret = get_path_from_string(rec, path);
if (ret < 0) {
- LOGW("Problem finding value for environment variable %s\n", var);
+ ALOGW("Problem finding value for environment variable %s\n", var);
}
return ret;
}