diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:44:07 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:44:07 -0800 |
commit | 13f797da7f190e9ea52f2f3d235210b8a4963b21 (patch) | |
tree | c821e95502ab1ab9096a11e7488e224e319a46b4 /vold/ums.c | |
parent | dcf3ce247e13fe0a982ed2ada35cdee1f0ac626a (diff) | |
download | system_core-13f797da7f190e9ea52f2f3d235210b8a4963b21.zip system_core-13f797da7f190e9ea52f2f3d235210b8a4963b21.tar.gz system_core-13f797da7f190e9ea52f2f3d235210b8a4963b21.tar.bz2 |
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'vold/ums.c')
-rw-r--r-- | vold/ums.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -21,6 +21,8 @@ #include "vold.h" #include "ums.h" +#define DEBUG_UMS 0 + static boolean host_connected = false; static boolean ums_enabled = false; @@ -42,7 +44,9 @@ boolean ums_enabled_get() void ums_hostconnected_set(boolean connected) { +#if DEBUG_UMS LOG_VOL("ums_hostconnected_set(%d):\n", connected); +#endif host_connected = connected; if (!connected) @@ -75,7 +79,9 @@ int ums_enable(char *dev_fspath, char *lun_syspath) int ums_disable(char *lun_syspath) { +#if DEBUG_UMS LOG_VOL("ums_disable(%s):\n", lun_syspath); +#endif int fd; char filename[255]; @@ -107,7 +113,9 @@ int ums_send_status(void) { int rc; +#if DEBUG_UMS LOG_VOL("ums_send_status():\n"); +#endif rc = send_msg(ums_enabled_get() ? VOLD_EVT_UMS_ENABLED : VOLD_EVT_UMS_DISABLED); |