X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdefaults.c;h=ee48c436879a7d356f6e649b5cd3b89a419533bc;hp=0303c887a885cecbaa43a10243c3af0227049a71;hb=cb8d0d245b5739e7493dcf27314f6e42615f14b1;hpb=4d5fb75f02db3ea42a5d9718f2c34dda4c485f76 diff --git a/src/common/defaults.c b/src/common/defaults.c index 0303c887a..ee48c4368 100644 --- a/src/common/defaults.c +++ b/src/common/defaults.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2012 - Simon Marchi + * Copyright (C) 2012 Simon Marchi * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License, version 2 only, as - * published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #define _LGPL_SOURCE @@ -67,7 +57,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 +107,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; }