diff options
author | Elliott Hughes <enh@google.com> | 2014-07-09 12:16:41 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-07-09 12:16:41 +0000 |
commit | 40372e5b4ed1027418485a66d80e48748eedc07f (patch) | |
tree | 9ae0cdcf91a165c7fab92fd43ef00714707129d2 /sdcard | |
parent | a916e260db1e6c2c20fe0451ffe380f5e19af818 (diff) | |
parent | 9464566580559b7353e6e2c898da79ffbbf993aa (diff) | |
download | system_core-40372e5b4ed1027418485a66d80e48748eedc07f.zip system_core-40372e5b4ed1027418485a66d80e48748eedc07f.tar.gz system_core-40372e5b4ed1027418485a66d80e48748eedc07f.tar.bz2 |
am 94645665: am f8acdcbe: am 75b7171f: Merge "Make sdcard log to the log rather than stderr."
* commit '9464566580559b7353e6e2c898da79ffbbf993aa':
Make sdcard log to the log rather than stderr.
Diffstat (limited to 'sdcard')
-rw-r--r-- | sdcard/sdcard.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index 3a164ed..2f02f65 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c @@ -14,6 +14,8 @@ * limitations under the License. */ +#define LOG_TAG "sdcard" + #include <ctype.h> #include <dirent.h> #include <errno.h> @@ -35,6 +37,7 @@ #include <cutils/fs.h> #include <cutils/hashmap.h> +#include <cutils/log.h> #include <cutils/multiuser.h> #include <private/android_filesystem_config.h> @@ -90,12 +93,12 @@ #define FUSE_TRACE 0 #if FUSE_TRACE -#define TRACE(x...) fprintf(stderr,x) +#define TRACE(x...) ALOGD(x) #else #define TRACE(x...) do {} while (0) #endif -#define ERROR(x...) fprintf(stderr,x) +#define ERROR(x...) ALOGE(x) #define FUSE_UNKNOWN_INO 0xffffffff |