{"id":2227093,"url":"http://patchwork.ozlabs.org/api/patches/2227093/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/patch/20260423084123.657690-5-pvorel@suse.cz/","project":{"id":59,"url":"http://patchwork.ozlabs.org/api/projects/59/?format=json","name":"Linux Test Project development","link_name":"ltp","list_id":"ltp.lists.linux.it","list_email":"ltp@lists.linux.it","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260423084123.657690-5-pvorel@suse.cz>","list_archive_url":null,"date":"2026-04-23T08:41:20","name":"[v5,4/6] doc: newlib_tests: Update debugging parameters","commit_ref":null,"pull_url":null,"state":"needs-review-ack","archived":false,"hash":"fef886802eb36c5bff0a3e4ecc4f9cd1ef24331e","submitter":{"id":70792,"url":"http://patchwork.ozlabs.org/api/people/70792/?format=json","name":"Petr Vorel","email":"pvorel@suse.cz"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/ltp/patch/20260423084123.657690-5-pvorel@suse.cz/mbox/","series":[{"id":501162,"url":"http://patchwork.ozlabs.org/api/series/501162/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/list/?series=501162","date":"2026-04-23T08:41:17","name":"lib: LTP_DEBUG cleanup","version":5,"mbox":"http://patchwork.ozlabs.org/series/501162/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2227093/comments/","check":"warning","checks":"http://patchwork.ozlabs.org/api/patches/2227093/checks/","tags":{},"related":[],"headers":{"Return-Path":"<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>","X-Original-To":["incoming@patchwork.ozlabs.org","ltp@lists.linux.it"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ltp@picard.linux.it"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=UbzzO80H;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.cz\n header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=458teu6O;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa\n header.b=UbzzO80H;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=458teu6O;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)","smtp-out2.suse.de;\n dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=UbzzO80H;\n dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=458teu6O"],"Received":["from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1V3R72lVz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 18:42:59 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id C8C4C3E2D80\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 10:42:57 +0200 (CEST)","from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id C57913E5376\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 10:41:45 +0200 (CEST)","from smtp-out2.suse.de (smtp-out2.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-2.smtp.seeweb.it (Postfix) with ESMTPS id B1A54600958\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 10:41:44 +0200 (CEST)","from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org\n [IPv6:2a07:de40:b281:104:10:150:64:97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id 59BB15BD7F;\n Thu, 23 Apr 2026 08:41:35 +0000 (UTC)","from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 29CEA593B1;\n Thu, 23 Apr 2026 08:41:35 +0000 (UTC)","from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id qIavCD/b6Wl6fgAAD6G6ig\n (envelope-from <pvorel@suse.cz>); Thu, 23 Apr 2026 08:41:35 +0000"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1776933695;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vVFaAOtXw1M/P29c1VpezOR5DSTvLL+6Yi0g/yrp8Ok=;\n b=UbzzO80HW+1UTigDDLMgy2E80VQLIT2jtsa7P9sFHFlQQY2XQMcvVwZy9+Y4ulbv8CfgAq\n nkPPOXJ9SmQbB21aktI52n6+KwTRVZqVZqx199gk9vmg0lm5wyDbPGUkd7GG7p1+GQjYa3\n 0SljaKQaf1wd5Dqmb/5hzKgg1vsO97g=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1776933695;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vVFaAOtXw1M/P29c1VpezOR5DSTvLL+6Yi0g/yrp8Ok=;\n b=458teu6O0ZK4O9abSoPy8zZrBkOQ7LQQod9tgwBDx+PY54HiFO6geRgMpHUOOzHgDp/XLy\n hOJZhn+WMafd9rAQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1776933695;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vVFaAOtXw1M/P29c1VpezOR5DSTvLL+6Yi0g/yrp8Ok=;\n b=UbzzO80HW+1UTigDDLMgy2E80VQLIT2jtsa7P9sFHFlQQY2XQMcvVwZy9+Y4ulbv8CfgAq\n nkPPOXJ9SmQbB21aktI52n6+KwTRVZqVZqx199gk9vmg0lm5wyDbPGUkd7GG7p1+GQjYa3\n 0SljaKQaf1wd5Dqmb/5hzKgg1vsO97g=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1776933695;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vVFaAOtXw1M/P29c1VpezOR5DSTvLL+6Yi0g/yrp8Ok=;\n b=458teu6O0ZK4O9abSoPy8zZrBkOQ7LQQod9tgwBDx+PY54HiFO6geRgMpHUOOzHgDp/XLy\n hOJZhn+WMafd9rAQ=="],"From":"Petr Vorel <pvorel@suse.cz>","To":"ltp@lists.linux.it","Date":"Thu, 23 Apr 2026 10:41:20 +0200","Message-ID":"<20260423084123.657690-5-pvorel@suse.cz>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260423084123.657690-1-pvorel@suse.cz>","References":"<20260423084123.657690-1-pvorel@suse.cz>","MIME-Version":"1.0","X-Rspamd-Action":"no action","X-Rspamd-Server":"rspamd2.dmz-prg2.suse.org","X-Spamd-Result":"default: False [-1.51 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[];\n NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[];\n R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n MX_GOOD(-0.01)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.cz:dkim,suse.cz:mid,suse.cz:email];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n FUZZY_RATELIMITED(0.00)[rspamd.com]; ARC_NA(0.00)[];\n TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+];\n SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[];\n FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[];\n TAGGED_RCPT(0.00)[];\n RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received];\n RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[suse.cz:+];\n FREEMAIL_CC(0.00)[suse.cz,gmail.com,suse.com,redhat.com];\n RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_FIVE(0.00)[6];\n FREEMAIL_ENVRCPT(0.00)[gmail.com]","X-Rspamd-Queue-Id":"59BB15BD7F","X-Spam-Score":"-1.51","X-Spam-Level":"","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_NONE,SPF_PASS\n shortcircuit=no autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-2.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-2.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"[LTP] [PATCH v5 4/6] doc: newlib_tests: Update debugging parameters","X-BeenThere":"ltp@lists.linux.it","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux Test Project <ltp.lists.linux.it>","List-Unsubscribe":"<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>","List-Archive":"<http://lists.linux.it/pipermail/ltp/>","List-Post":"<mailto:ltp@lists.linux.it>","List-Help":"<mailto:ltp-request@lists.linux.it?subject=help>","List-Subscribe":"<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>","Cc":"Martin Cermak <mcermak@redhat.com>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"},"content":"* Improve wording in doc/developers/debugging.rst. Not mention 'y'\n  (enough for user is to know 1 and 2 + 'y' is mentioned at -h).\n* Mention all -D and LTP_DEBUG parameters in library test.\n* Keep info about the levels in developers/debugging.rst, link page in\n  user/setup_tests.\n* Remove values from old doc (we have enough places to sync on changes,\n  let's drop the old doc).\n\nFollow-up: b415265cb3 (\"doc/setup_tests: Document LTP_ENABLE_DEBUG=2\")\nReviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>\nReviewed-by: Li Wang <wangli.ahau@gmail.com>\nSigned-off-by: Petr Vorel <pvorel@suse.cz>\n---\n doc/developers/debugging.rst     | 4 ++--\n doc/old/C-Test-API.asciidoc      | 4 ++--\n doc/users/setup_tests.rst        | 2 +-\n lib/newlib_tests/tst_res_flags.c | 2 +-\n 4 files changed, 6 insertions(+), 6 deletions(-)","diff":"diff --git a/doc/developers/debugging.rst b/doc/developers/debugging.rst\nindex 4e162068b4..6062fdece0 100644\n--- a/doc/developers/debugging.rst\n+++ b/doc/developers/debugging.rst\n@@ -9,10 +9,10 @@ Debug messages\n --------------\n \n The LTP framework supports ``TDEBUG`` flag test debug messages. These\n-messages can be enabled using the ``-D[1,2]`` parameter or setting ``LTP_DEBUG=1,2``\n+messages can be enabled using the ``-D`` parameter or setting ``LTP_DEBUG``\n environment variable (see :doc:`../users/setup_tests`).\n \n-The ``-D`` parameter also supports the following verbosity levels:\n+Both ``-D`` parameter and ``LTP_DEBUG`` support the following verbosity levels:\n \n   ``-D1`` (or ``-D``): Enable debug logs for the test process only.\n   ``-D2``: Enable verbose debug logs for both the test and library processes.\ndiff --git a/doc/old/C-Test-API.asciidoc b/doc/old/C-Test-API.asciidoc\nindex 7c5ad923dd..38dae98663 100644\n--- a/doc/old/C-Test-API.asciidoc\n+++ b/doc/old/C-Test-API.asciidoc\n@@ -232,8 +232,8 @@ Printf-like function to report test result, it's mostly used with ttype:\n | 'TPASS'  | Test has passed.\n | 'TFAIL'  | Test has failed.\n | 'TINFO'  | General message.\n-| 'TDEBUG' | Debug message (new C API only, printed with '-D' or via 'LTP_DEBUG=1' or 'y'\n-             environment variable), only for messages which would be too verbose for normal run.\n+| 'TDEBUG' | Debug message (new C API only, enabled via '-D' or 'LTP_DEBUG' environment variable)\n+             only for messages which would be too verbose for normal run.\n | 'TWARN'  | Something went wrong but we decided to continue. Mostly used in cleanup functions.\n |==============================\n \ndiff --git a/doc/users/setup_tests.rst b/doc/users/setup_tests.rst\nindex a42c397feb..6f1d996e18 100644\n--- a/doc/users/setup_tests.rst\n+++ b/doc/users/setup_tests.rst\n@@ -92,7 +92,7 @@ users.\n \n    * - LTP_DEBUG\n      - Enable debug info (value ``1`` (``y``) or ``2`` for more verbose level).\n-       Equivalent of ``-D`` parameter.\n+       Equivalent of the ``-D`` parameter (see :doc:`../developers/debugging`).\n \n Test specific environment variables\n -----------------------------------\ndiff --git a/lib/newlib_tests/tst_res_flags.c b/lib/newlib_tests/tst_res_flags.c\nindex 9993d0f87d..cda0970702 100644\n--- a/lib/newlib_tests/tst_res_flags.c\n+++ b/lib/newlib_tests/tst_res_flags.c\n@@ -21,7 +21,7 @@ static struct tcase {\n \t{FLAG(TCONF)},\n \t{FLAG(TWARN)},\n \t{FLAG(TINFO)},\n-\t{FLAG(TDEBUG), \" (printed only with -D[1,2] or LTP_DEBUG=1,2)\"},\n+\t{FLAG(TDEBUG), \" (printed only with -D[1,2] or LTP_DEBUG=1(y),2)\"},\n };\n \n static void do_cleanup(void)\n","prefixes":["v5","4/6"]}