X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=c51956e53c0d37d32b7236f9ffe6af902b2684e8;hp=f3085bcd57f0d4e754e8cfca0d7da8a311937a38;hb=e61f1ec89de8eb5bb0f8b1e6a79594f0bff2a259;hpb=69204d6e8830464bc98fcc28ca91412d6d360775;ds=sidebyside diff --git a/init.c b/init.c index f3085bcd..c51956e5 100644 --- a/init.c +++ b/init.c @@ -158,8 +158,11 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent) if (global) return &def_thread; - if (thread_number >= max_jobs) + if (thread_number >= max_jobs) { + log_err("error: maximum number of jobs (%d) reached.\n", + max_jobs); return NULL; + } td = &threads[thread_number++]; *td = *parent;