From c71283fb85e0e54592f3bf912474f6f5ecbc46af Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 15 Jun 2008 09:48:14 -0500 Subject: [PATCH] Include event type number in warning for unhandled LASH events. --- src/lash.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lash.C b/src/lash.C index 4a6c4b5..f6c92d8 100644 --- a/src/lash.C +++ b/src/lash.C @@ -68,7 +68,9 @@ Lash::process ( void ) { asprintf( &name, "%s/%s", lash_event_get_string( e ), "song.non" ); - switch ( lash_event_get_type( e ) ) + const int t = lash_event_get_type ( e ); + + switch ( t ) { case LASH_Save_File: { @@ -97,7 +99,7 @@ Lash::process ( void ) quit(); break; default: - WARNING( "unhandled LASH event" ); + WARNING( "unhandled LASH event (%d)", t ); } lash_event_destroy( e );