* MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <lttv/hook.h>
#include <lttv/module.h>
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;
void lttv_module_option(void *hook_data)
-{
+{
GError *error = NULL;
lttv_module_require(a_module, &error);
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");
}
/*