summaryrefslogtreecommitdiffstats
path: root/vold/ums.c
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:07 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:07 -0800
commit13f797da7f190e9ea52f2f3d235210b8a4963b21 (patch)
treec821e95502ab1ab9096a11e7488e224e319a46b4 /vold/ums.c
parentdcf3ce247e13fe0a982ed2ada35cdee1f0ac626a (diff)
downloadsystem_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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vold/ums.c b/vold/ums.c
index a6468fc..2686b6f 100644
--- a/vold/ums.c
+++ b/vold/ums.c
@@ -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);