Cleanup: unused assignation of ELF parsing error
[lttng-tools.git] / src / common / defaults.c
index 0303c887a885cecbaa43a10243c3af0227049a71..3bb42280f0ce7b9f0950094901ac3bc307046336 100644 (file)
@@ -67,7 +67,7 @@ pthread_attr_t *default_pthread_attr(void)
                return &tattr;
        }
 
-       WARN("Uninitializez pthread attributes, using libc defaults.");
+       WARN("Uninitialized pthread attributes, using libc defaults.");
        return NULL;
 }
 
@@ -117,7 +117,7 @@ static void __attribute__((constructor)) init_default_pthread_attr(void)
                selected_ss = DEFAULT_LTTNG_THREAD_STACK_SIZE;
        }
 
-       if (rlim.rlim_max >= 0 && selected_ss > rlim.rlim_max) {
+       if (rlim.rlim_max > 0 && selected_ss > rlim.rlim_max) {
                WARN("Your system's stack size restrictions (%zu bytes) may be too low for the LTTng daemons to function properly, please set the stack size limit to at leat %zu bytes to ensure reliable operation",
                        (size_t) rlim.rlim_max, (size_t) DEFAULT_LTTNG_THREAD_STACK_SIZE);
                selected_ss = (size_t) rlim.rlim_max;
This page took 0.022845 seconds and 4 git commands to generate.