diff options
author | Steve Block <steveblock@google.com> | 2011-10-20 11:56:00 +0100 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-01-19 14:44:31 -0800 |
commit | 06ade6ae1bd015e8b8ad0685847911213c93cc5b (patch) | |
tree | 0fb687dcbdf125a30cdb645605b57bb847d0c7b5 /cmds/installd | |
parent | c318bbb05e02a0080e129623ec8029d31be0d60e (diff) | |
download | frameworks_base-06ade6ae1bd015e8b8ad0685847911213c93cc5b.zip frameworks_base-06ade6ae1bd015e8b8ad0685847911213c93cc5b.tar.gz frameworks_base-06ade6ae1bd015e8b8ad0685847911213c93cc5b.tar.bz2 |
Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF)
Change-Id: I5321ebd12e9c6248a108529e82c4e1af2a4405e3
Diffstat (limited to 'cmds/installd')
-rw-r--r-- | cmds/installd/commands.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c index 4ede33f..db72585 100644 --- a/cmds/installd/commands.c +++ b/cmds/installd/commands.c @@ -243,7 +243,7 @@ int move_dex(const char *src, const char *dst) if (create_cache_path(src_dex, src)) return -1; if (create_cache_path(dst_dex, dst)) return -1; - LOGV("move %s -> %s\n", src_dex, dst_dex); + ALOGV("move %s -> %s\n", src_dex, dst_dex); if (rename(src_dex, dst_dex) < 0) { LOGE("Couldn't move %s: %s\n", src_dex, strerror(errno)); return -1; @@ -259,7 +259,7 @@ int rm_dex(const char *path) if (validate_apk_path(path)) return -1; if (create_cache_path(dex_path, path)) return -1; - LOGV("unlink %s\n", dex_path); + ALOGV("unlink %s\n", dex_path); if (unlink(dex_path) < 0) { LOGE("Couldn't unlink %s: %s\n", dex_path, strerror(errno)); return -1; @@ -469,7 +469,7 @@ static int wait_dexopt(pid_t pid, const char* apk_path) } if (WIFEXITED(status) && WEXITSTATUS(status) == 0) { - LOGV("DexInv: --- END '%s' (success) ---\n", apk_path); + ALOGV("DexInv: --- END '%s' (success) ---\n", apk_path); return 0; } else { LOGW("DexInv: --- END '%s' --- status=0x%04x, process failed\n", @@ -536,7 +536,7 @@ int dexopt(const char *apk_path, uid_t uid, int is_public) goto fail; } - LOGV("DexInv: --- BEGIN '%s' ---\n", apk_path); + ALOGV("DexInv: --- BEGIN '%s' ---\n", apk_path); pid_t pid; pid = fork(); @@ -591,7 +591,7 @@ void mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid, if (path[basepos] == '/') { path[basepos] = 0; if (lstat(path, statbuf) < 0) { - LOGV("Making directory: %s\n", path); + ALOGV("Making directory: %s\n", path); if (mkdir(path, mode) == 0) { chown(path, uid, gid); } else { @@ -623,7 +623,7 @@ int movefileordir(char* srcpath, char* dstpath, int dstbasepos, if ((statbuf->st_mode&S_IFDIR) == 0) { mkinnerdirs(dstpath, dstbasepos, S_IRWXU|S_IRWXG|S_IXOTH, dstuid, dstgid, statbuf); - LOGV("Renaming %s to %s (uid %d)\n", srcpath, dstpath, dstuid); + ALOGV("Renaming %s to %s (uid %d)\n", srcpath, dstpath, dstuid); if (rename(srcpath, dstpath) >= 0) { if (chown(dstpath, dstuid, dstgid) < 0) { LOGE("cannot chown %s: %s\n", dstpath, strerror(errno)); @@ -732,7 +732,7 @@ int movefiles() } if (bufi < bufe) { buf[bufi] = 0; - LOGV("Processing line: %s\n", buf+bufp); + ALOGV("Processing line: %s\n", buf+bufp); hasspace = 0; while (bufp < bufi && isspace(buf[bufp])) { hasspace = 1; @@ -747,7 +747,7 @@ int movefiles() } else if (srcpkg[0] == 0) { // Skip -- source package no longer exists. } else { - LOGV("Move file: %s (from %s to %s)\n", buf+bufp, srcpkg, dstpkg); + ALOGV("Move file: %s (from %s to %s)\n", buf+bufp, srcpkg, dstpkg); if (!create_move_path(srcpath, srcpkg, buf+bufp, 0) && !create_move_path(dstpath, dstpkg, buf+bufp, 0)) { movefileordir(srcpath, dstpath, @@ -806,7 +806,7 @@ int movefiles() div, UPDATE_COMMANDS_DIR_PREFIX, name); } } - LOGV("Transfering from %s to %s: uid=%d\n", + ALOGV("Transfering from %s to %s: uid=%d\n", srcpkg, dstpkg, dstuid); } } @@ -833,7 +833,7 @@ int movefiles() } bufe += readlen; buf[bufe] = 0; - LOGV("Read buf: %s\n", buf); + ALOGV("Read buf: %s\n", buf); } } close(subfd); |