@@ -243,7 +243,7 @@ int move_dex(const char *src, const char *dst)
243243 if (create_cache_path (src_dex , src )) return -1 ;
244244 if (create_cache_path (dst_dex , dst )) return -1 ;
245245
246- LOGV ("move %s -> %s\n" , src_dex , dst_dex );
246+ ALOGV ("move %s -> %s\n" , src_dex , dst_dex );
247247 if (rename (src_dex , dst_dex ) < 0 ) {
248248 LOGE ("Couldn't move %s: %s\n" , src_dex , strerror (errno ));
249249 return -1 ;
@@ -259,7 +259,7 @@ int rm_dex(const char *path)
259259 if (validate_apk_path (path )) return -1 ;
260260 if (create_cache_path (dex_path , path )) return -1 ;
261261
262- LOGV ("unlink %s\n" , dex_path );
262+ ALOGV ("unlink %s\n" , dex_path );
263263 if (unlink (dex_path ) < 0 ) {
264264 LOGE ("Couldn't unlink %s: %s\n" , dex_path , strerror (errno ));
265265 return -1 ;
@@ -469,7 +469,7 @@ static int wait_dexopt(pid_t pid, const char* apk_path)
469469 }
470470
471471 if (WIFEXITED (status ) && WEXITSTATUS (status ) == 0 ) {
472- LOGV ("DexInv: --- END '%s' (success) ---\n" , apk_path );
472+ ALOGV ("DexInv: --- END '%s' (success) ---\n" , apk_path );
473473 return 0 ;
474474 } else {
475475 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)
536536 goto fail ;
537537 }
538538
539- LOGV ("DexInv: --- BEGIN '%s' ---\n" , apk_path );
539+ ALOGV ("DexInv: --- BEGIN '%s' ---\n" , apk_path );
540540
541541 pid_t pid ;
542542 pid = fork ();
@@ -591,7 +591,7 @@ void mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid,
591591 if (path [basepos ] == '/' ) {
592592 path [basepos ] = 0 ;
593593 if (lstat (path , statbuf ) < 0 ) {
594- LOGV ("Making directory: %s\n" , path );
594+ ALOGV ("Making directory: %s\n" , path );
595595 if (mkdir (path , mode ) == 0 ) {
596596 chown (path , uid , gid );
597597 } else {
@@ -623,7 +623,7 @@ int movefileordir(char* srcpath, char* dstpath, int dstbasepos,
623623 if ((statbuf -> st_mode & S_IFDIR ) == 0 ) {
624624 mkinnerdirs (dstpath , dstbasepos , S_IRWXU |S_IRWXG |S_IXOTH ,
625625 dstuid , dstgid , statbuf );
626- LOGV ("Renaming %s to %s (uid %d)\n" , srcpath , dstpath , dstuid );
626+ ALOGV ("Renaming %s to %s (uid %d)\n" , srcpath , dstpath , dstuid );
627627 if (rename (srcpath , dstpath ) >= 0 ) {
628628 if (chown (dstpath , dstuid , dstgid ) < 0 ) {
629629 LOGE ("cannot chown %s: %s\n" , dstpath , strerror (errno ));
@@ -732,7 +732,7 @@ int movefiles()
732732 }
733733 if (bufi < bufe ) {
734734 buf [bufi ] = 0 ;
735- LOGV ("Processing line: %s\n" , buf + bufp );
735+ ALOGV ("Processing line: %s\n" , buf + bufp );
736736 hasspace = 0 ;
737737 while (bufp < bufi && isspace (buf [bufp ])) {
738738 hasspace = 1 ;
@@ -747,7 +747,7 @@ int movefiles()
747747 } else if (srcpkg [0 ] == 0 ) {
748748 // Skip -- source package no longer exists.
749749 } else {
750- LOGV ("Move file: %s (from %s to %s)\n" , buf + bufp , srcpkg , dstpkg );
750+ ALOGV ("Move file: %s (from %s to %s)\n" , buf + bufp , srcpkg , dstpkg );
751751 if (!create_move_path (srcpath , srcpkg , buf + bufp , 0 ) &&
752752 !create_move_path (dstpath , dstpkg , buf + bufp , 0 )) {
753753 movefileordir (srcpath , dstpath ,
@@ -806,7 +806,7 @@ int movefiles()
806806 div , UPDATE_COMMANDS_DIR_PREFIX , name );
807807 }
808808 }
809- LOGV ("Transfering from %s to %s: uid=%d\n" ,
809+ ALOGV ("Transfering from %s to %s: uid=%d\n" ,
810810 srcpkg , dstpkg , dstuid );
811811 }
812812 }
@@ -833,7 +833,7 @@ int movefiles()
833833 }
834834 bufe += readlen ;
835835 buf [bufe ] = 0 ;
836- LOGV ("Read buf: %s\n" , buf );
836+ ALOGV ("Read buf: %s\n" , buf );
837837 }
838838 }
839839 close (subfd );
0 commit comments