From b1647c624d9eb200e58711306cf6967b94c827ad Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 14 May 2010 16:20:58 +0000 Subject: [PATCH] Added debugging information --- src/plugins/openmoko.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/openmoko.c b/src/plugins/openmoko.c index d797023..f7a5c52 100644 --- a/src/plugins/openmoko.c +++ b/src/plugins/openmoko.c @@ -52,7 +52,7 @@ PhonePlugin plugin = /* private */ /* functions */ -/* openmoko_init */ +/* openmoko_event */ static int _event_mixer_set(char const * filename); static void _openmoko_event(PhoneEvent event, ...) @@ -84,6 +84,9 @@ static int _event_mixer_set(char const * filename) char * alsactl[] = { SBINDIR "/alsactl", "alsactl", "-f", NULL, "restore", NULL }; +#ifdef DEBUG + fprintf(stderr, "DEBUG: %s(\"%s\")\n", __func__, filename); +#endif len = sizeof(scenarios) + 1 + strlen(filename); if((pathname = malloc(len)) == NULL) return error_set_code(1, "%s", strerror(errno));