X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdefaults.c;h=874578183ede2f9ad73c89627c7591f78fb3eba8;hp=0303c887a885cecbaa43a10243c3af0227049a71;hb=18710679a8ac57fda5dbd26cf16bb180dce9e286;hpb=4d5fb75f02db3ea42a5d9718f2c34dda4c485f76 diff --git a/src/common/defaults.c b/src/common/defaults.c index 0303c887a..874578183 100644 --- a/src/common/defaults.c +++ b/src/common/defaults.c @@ -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,8 +117,8 @@ 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) { - 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", + 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 least %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; }