threads: add id_to_int() and int_to_id() inline functions
[model-checker.git] / libthreads.cc
index 7dd043c317c715e0604b3cdecf61d210c6bf9742..73a948cc4a493a7fa4b3c1bea65af8653c6ebc17 100644 (file)
@@ -13,7 +13,7 @@ int thrd_create(thrd_t *t, void (*start_routine)(), void *arg)
        int ret;
        DBG();
        ret = model->add_thread(new Thread(t, start_routine, arg));
-       DEBUG("create thread %d\n", thrd_to_id(*t));
+       DEBUG("create thread %d\n", id_to_int(thrd_to_id(*t)));
        return ret;
 }