add support for block devices in restore_init_state()
[lttv.git] / ltt / branches / poly / lttv / lttv / hook.h
index 90f50b0d54a462e99448c0879b1664a3694df552..197184a6d4ce9333be659c31ecb5a5408b0e0add 100644 (file)
@@ -130,7 +130,7 @@ typedef struct _LttvHooksById {
 
 /* macro to calculate the hook ID of a facility/event pair. */
 #define GET_HOOK_ID(fac_id, ev_id) \
-  ( (guint)fac_id | ((guint)ev_id << (8*sizeof(NUM_FACILITIES))) )
+  ( (guint)fac_id | ((guint)ev_id << FACILITIES_BITS) )
 
 /* Create and destroy a hooks by id list */
 
This page took 0.023419 seconds and 4 git commands to generate.