r2671 - trunk/src/target/OM-2007.2/daemons/neod/src
mickey at sita.openmoko.org
mickey at sita.openmoko.org
Thu Aug 9 17:45:24 CEST 2007
Author: mickey
Date: 2007-08-09 17:45:24 +0200 (Thu, 09 Aug 2007)
New Revision: 2671
Modified:
trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c
Log:
neod: add runtime debug stuff
Modified: trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c
===================================================================
--- trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c 2007-08-09 13:03:28 UTC (rev 2670)
+++ trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c 2007-08-09 15:45:24 UTC (rev 2671)
@@ -247,10 +247,11 @@
{
struct input_event event;
int size = read( input_fd[i].fd, &event, sizeof( struct input_event ) );
-#ifdef DEBUG_THIS_FILE
- g_debug( "read %d bytes from fd %d", size, input_fd[i].fd );
- g_debug( "input event = ( %0x, %0x, %0x )", event.type, event.code, event.value );
-#endif
+ if ( getenv( "MOKO_DEBUG" ) )
+ {
+ g_debug( "read %d bytes from fd %d", size, input_fd[i].fd );
+ g_debug( "input event = ( %0x, %0x, %0x )", event.type, event.code, event.value );
+ }
if ( event.type == 1 && event.code == AUX_BUTTON_KEYCODE )
{
if ( event.value == 1 ) /* pressed */
More information about the commitlog
mailing list