diff options
author | Elliott Hughes <enh@google.com> | 2014-07-08 13:53:26 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-07-08 13:53:26 -0700 |
commit | 300d5649800744b3f5eab478f2bd7921f584b07d (patch) | |
tree | 3daa6e432dd2e8602e5e523e4a09e982d2772112 /sdcard/sdcard.c | |
parent | dda635455fb085d2f33fd1bdc5140805a055ea05 (diff) | |
download | core-300d5649800744b3f5eab478f2bd7921f584b07d.tar.gz core-300d5649800744b3f5eab478f2bd7921f584b07d.tar.bz2 core-300d5649800744b3f5eab478f2bd7921f584b07d.zip |
Make sdcard log to the log rather than stderr.
Change-Id: I9c78941184c5e364055bfac766e1e542d3c23c87
Diffstat (limited to 'sdcard/sdcard.c')
-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 7baad6395..566a66cc4 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 |