X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_processing_lttng_common.c;h=c3957eb2211d2c6109785c9e6269b751e935cdb9;hb=fafb0a2998296c564cbc26c2c0fa5142b181b332;hp=8f1d2dcbc3a249af70e8e5f2c62fc1da6c51c2c9;hpb=f6691532b67cb6911749118e3da8d74de876380c;p=lttv.git diff --git a/lttv/lttv/sync/event_processing_lttng_common.c b/lttv/lttv/sync/event_processing_lttng_common.c index 8f1d2dcb..c3957eb2 100644 --- a/lttv/lttv/sync/event_processing_lttng_common.c +++ b/lttv/lttv/sync/event_processing_lttng_common.c @@ -24,11 +24,6 @@ #include "event_processing_lttng_common.h" -#ifndef g_info -#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format) -#endif - - /* * Initialize the GQuarks needed to register the event hooks for * synchronization @@ -147,12 +142,12 @@ void registerHooks(GArray* hookListList, LttvTracesetContext* const guint old_len; bool registerHook; - registerHook= true; + registerHook= false; for (k= 0; k < TYPE_COUNT; k++) { - if (eventTypes[k] && eventHookInfoList[j].eventTypes[k] == false) + if (eventTypes[k] && eventHookInfoList[j].eventTypes[k]) { - registerHook= false; + registerHook= true; break; } }