From 51760e3c7ed15aeccd84e3a7e4f18fcf185d7f39 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Fri, 24 Jul 2009 11:00:23 -0700 Subject: [PATCH] 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 --- lib/libzpool/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index bbef8bb404..1218f20deb 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; }