diff options
author | Ricardo M. Correia <[email protected]> | 2009-07-24 11:00:23 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-07-24 11:00:23 -0700 |
commit | 51760e3c7ed15aeccd84e3a7e4f18fcf185d7f39 (patch) | |
tree | fbd96dfb75f0f7684f1fdd7c25314733e118a2e0 /lib | |
parent | a13cdecdd2b6744547efb0e0ae20836120815b81 (diff) |
Change VERIFY() into VERIFY3U() when creating threads in ztest, so that we can see the return code when it fails.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzpool/kernel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index bbef8bb40..1218f20de 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -182,8 +182,8 @@ zk_thread_create(caddr_t stk, size_t stksize, thread_func_t func, void *arg, list_insert_head(&kthread_list, kt); VERIFY3S(pthread_mutex_unlock(&kthread_lock), ==, 0); - VERIFY(pthread_create(&kt->t_tid, &kt->t_attr, - (void *(*)(void *))func, arg) == 0); + VERIFY3U(pthread_create(&kt->t_tid, &kt->t_attr, + (void *(*)(void *))func, arg), ==, 0); return kt; } |