Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68F25F9EDD9 for ; Wed, 22 Apr 2026 14:13:19 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 5AA9C3E3039 for ; Wed, 22 Apr 2026 16:13:17 +0200 (CEST) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 3FF263E555E for ; Wed, 22 Apr 2026 16:12:43 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 87F041400458 for ; Wed, 22 Apr 2026 16:12:41 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id CAB366A8E2; Wed, 22 Apr 2026 14:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1776867159; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AL757g80cD8wt2DY+NfZvyTarGgZnLAKWpq7WQ7d1Mg=; b=dXOgTzURYXv1Mx2dh4QQlg/8E5TKskerpc6HLoucl01fgW9Gdeo6D8GylcElr2wT37vh0o Ghuesrg4VmY7KjUGBCK6dxJIR4FnAkD0FsKEbXVVM1dbx28/ZUHIwuKPR5NaUuOMEuBn/Y 0NSUxkGL7UvK/mcS6IqDcB917+P/j4Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1776867159; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AL757g80cD8wt2DY+NfZvyTarGgZnLAKWpq7WQ7d1Mg=; b=JcMPM9SAaMLThKtKuDXEkc7rWXv8T3NEF7rN6UJb8t25FbqHj5cC8q2caSvC7ytdDjnGnQ CYoj8aJFlikHiUBg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1776867158; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AL757g80cD8wt2DY+NfZvyTarGgZnLAKWpq7WQ7d1Mg=; b=BaujQ8oeDjO1JwSTDydzvIezyK396tWs3WvJFhueNzCzSGs22yCwsC9eOTwOznKpFWKQit xPDWYKeAB2xhh+rzJqOeKAZjRmBsFEzr5MghgC5VvY95xRTefyl24FxpYvAz9F9uettzJz mdXGekflcmHOqcjtix+ib3UxQCLGQTI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1776867158; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AL757g80cD8wt2DY+NfZvyTarGgZnLAKWpq7WQ7d1Mg=; b=k0PDVgJd6hCzLLf4/sQbV79uLjC2ZVvutkk03vdKGUxsmFrUICJ2SHGs3Dbpgp0GG3JBAs ZafTG2Mw2hXKJYDQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 2ABAD593B0; Wed, 22 Apr 2026 14:12:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id wKgOBlbX6GnqUwAAD6G6ig (envelope-from ); Wed, 22 Apr 2026 14:12:38 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 22 Apr 2026 16:12:30 +0200 Message-ID: <20260422141234.632195-2-pvorel@suse.cz> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260422141234.632195-1-pvorel@suse.cz> References: <20260422141234.632195-1-pvorel@suse.cz> MIME-Version: 1.0 X-Spamd-Result: default: False [-1.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TAGGED_RCPT(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_SEVEN(0.00)[7]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[suse.cz,gmail.com,suse.com,redhat.com]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:mid,suse.cz:email,imap1.dmz-prg2.suse.org:helo,suse.com:email]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVRCPT(0.00)[gmail.com] X-Virus-Scanned: clamav-milter 1.0.9 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v4 1/5] lib: Ignore empty LTP_ENABLE_DEBUG X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Cermak Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Empty LTP_ENABLE_DEBUG environment variable should be just ignored. This fixes warning: LTP_ENABLE_DEBUG= ./test05 tst_test.c:1454: TWARN: Invalid LTP_ENABLE_DEBUG value: Fixes: e434de62b4 ("lib: Extend LTP_ENABLE_DEBUG to support verbosity levels") Reviewed-by: Li Wang Reviewed-by: Andrea Cervesato Signed-off-by: Petr Vorel --- lib/tst_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tst_test.c b/lib/tst_test.c index 26f6510a0a..229da669fa 100644 --- a/lib/tst_test.c +++ b/lib/tst_test.c @@ -1445,13 +1445,13 @@ static void do_setup(int argc, char *argv[]) parse_opts(argc, argv); - if (tdebug_env && !context->tdebug) { + if (tdebug_env && *tdebug_env && !context->tdebug) { if (!strcmp(tdebug_env, "2")) context->tdebug = 2; else if (!strcmp(tdebug_env, "1") || !strcmp(tdebug_env, "y")) context->tdebug = 1; else - tst_res(TWARN, "Invalid LTP_ENABLE_DEBUG value: %s", tdebug_env); + tst_res(TWARN, "Invalid LTP_ENABLE_DEBUG value: '%s'", tdebug_env); if (context->tdebug) tst_res(TINFO, "Enabling debug info (level %d)", context->tdebug); -- 2.53.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp