X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Fmain.c;h=4e306c6d4ef97d288952540e54a3cdf83fadfc83;hb=e098ade03ee410d2fc9fc57f7478f0f74ee9014f;hp=2c4a9f0aca676c45ba59451503d82a66e628160b;hpb=4e4d11b3b1db254446f6cad04b3c3fa9b574851f;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/main.c b/ltt/branches/poly/lttv/lttv/main.c index 2c4a9f0a..4e306c6d 100644 --- a/ltt/branches/poly/lttv/lttv/main.c +++ b/ltt/branches/poly/lttv/lttv/main.c @@ -75,14 +75,16 @@ static void lttv_help(void *hook_data); messages. It receives the message and does nothing. */ void ignore_and_drop_message(const gchar *log_domain, GLogLevelFlags log_level, - const gchar *message, gpointer user_data) { + const gchar *message, gpointer user_data) +{ } /* Since everything is done in modules, the main program only takes care of the infrastructure. */ -int main(int argc, char **argv) { +int main(int argc, char **argv) +{ int i; @@ -237,7 +239,7 @@ LttvAttribute *lttv_global_attributes() void lttv_module_option(void *hook_data) -{ +{ GError *error = NULL; lttv_module_require(a_module, &error); @@ -265,17 +267,17 @@ void lttv_debug(void *hook_data) void lttv_fatal(void *hook_data) { - //g_log_set_always_fatal(G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL); - g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); + g_log_set_always_fatal(G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL); + //g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); g_info("Critical log from glib will abort execution"); } void lttv_help(void *hook_data) { - printf("Linux Trace Toolkit Visualizer\n"); - printf("\n"); - lttv_option_show_help(); - printf("\n"); + printf("Linux Trace Toolkit Visualizer " VERSION "\n"); + printf("\n"); + lttv_option_show_help(); + printf("\n"); } /*