Message ID | 20230214201741.4145334-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRB4OYV6PQMGQE7YKIPLQ@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::240; helo=mail-lj1-x240.google.com; envelope-from=swupdate+bncbcxploxj6ikrb4oyv6pqmgqe7ykiplq@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=EfDLK/Yx; dkim-atps=neutral Received: from mail-lj1-x240.google.com (mail-lj1-x240.google.com [IPv6:2a00:1450:4864:20::240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PGXZc1Xkxz23r4 for <incoming@patchwork.ozlabs.org>; Wed, 15 Feb 2023 07:17:58 +1100 (AEDT) Received: by mail-lj1-x240.google.com with SMTP id o19-20020a05651c051300b002934fe0289bsf1969245ljp.0 for <incoming@patchwork.ozlabs.org>; Tue, 14 Feb 2023 12:17:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676405874; cv=pass; d=google.com; s=arc-20160816; b=T7mER+VnBAW9bHOVYXobAS5enxQHOpMjhVkCBDGpD7GGHc2fzFIvDFLLEDRTZUIvXb OHKoU7K85VlO0LApDqRwJZ5fCbkVGEOW+wZBtircYw/TbcUKAFF67wpFplPzXv4FKX73 7nLcPB0qgA1pGcBc/EcQKFJFcpBwe0n2jknVKPo8h7w8z2kLQuIhagbXo/o69G1rPVVN 5XHKJI8/Ri8GvuDdoExc2INcygR037QY2+OLHTPQoH+6IJUE3IN6SHLSpIHmOh0uRHBI 2g3SFmBnnZjccNhZEpxBFO2/B7dypFkzfUzFHPgCeuL4zUGrKDixpPkqJnv7FAVBmrsE a2XA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=zSztEtCr+puf5npIqMRxCt/sOGA4MAa8C+g9JeO+DPs=; b=RWq/Q97lND1NDjTSQjirfox3R7/pR71xQ9/hSYX4M+bEgG3uCjI0ZYa9/pq4NiqY/w GU9cTkMIxOtYuI6LlxeCdeJFwIXiL277PrVzeHDQRAvOs546foE5VIw+LOA0VywsIe+Q JwKMm8k6G9eGEf3ch/BdJ2mS3CRlvWpOJ/g/pwLNkH0zfe59oTuK3CMvNrSt9nDQd3V4 wX5EZ41EwJ3NCqPPoFti1uqflXoICXoYeg4K7B3U5keNDf3NFzGIUk/oIa2Z6ROQU9tz +26MusX4puRq+h59hzRXdU7h2WSFKbrYaV1bT6AAHBg+sr12gKery4prnfyCCMpFojKw Ae+Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=zSztEtCr+puf5npIqMRxCt/sOGA4MAa8C+g9JeO+DPs=; b=EfDLK/YxGqO0ZUjeWW39kmC0KXNgPkEbzTn1TQVrJYshfjXn04FoRB5HPfpBK9thua wU/39/LXlEfyZltC7yMYBU1SJjXIiU3GEygYO75Fx6BjWoxfhIVbdS4ChSGxvUhFzqbR 6jpWXqbL427oduQ4wdmuuWDCrpC/7lkcEt5I/oGHf2+nDR+fjXtSkgGjVGfH3LKCyMbI 1M9qJf8YMG5xs6EyTYMPxj+jlydmixqvUCYRCvanytiTphkwmsLhlUXgXukKoYNY76qk NvbBrFB1RagXD/9QKtJhWsyVzkCglfxcTGga7IsZ7YHHGumiVCrTwRSelAIxjCzKxAfH GwyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=zSztEtCr+puf5npIqMRxCt/sOGA4MAa8C+g9JeO+DPs=; b=g9bKviQG10ENCt+Ndzwgy3MDUB02ZzRcBvFasKQWHH8fWnquavstrkPwvGluUCDnUZ fZdJ6kc9qE9rZttcepYvviWntleDirUPRBVpZpZJM3H2Aj/rx5etJvz72eZn0dtGkuKL gR9FYOcuq1jo5E33x9M5v6EwYS1rynMy/ITOTZnhPHaaRjNBYNo/ESoWEnhPi22SLAqb +K1ucJqzFLQqk4XMavtSC/JGpveJuQgeVPJOJ14RDxCxHXisiB74SNC3+1eEQzJsMOhv U2+qvXDnDyt/62Q88d5bhJ4ySW/pn1wzYwn+JiNluZRyUwh8vUh/i17aflDP8fgkIqkt 9EPA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AO0yUKVUljW9yN+bNOZ0btdFQCoYMZw58lplU5rzR53pvPco++f4Y5ol EOCHRlJt0XnGSwTDQFDH/WQ= X-Google-Smtp-Source: AK7set8LsieitbN5Hmn5RY9iALzy2zkABuMEP7asGK7rkI39TMwIqwT5pLkhXcd2msgC8NwDM9+Yzw== X-Received: by 2002:a2e:5451:0:b0:293:520d:d162 with SMTP id y17-20020a2e5451000000b00293520dd162mr581688ljd.5.1676405874282; Tue, 14 Feb 2023 12:17:54 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:bc0f:0:b0:293:4d60:102b with SMTP id b15-20020a2ebc0f000000b002934d60102bls1287996ljf.1.-pod-prod-gmail; Tue, 14 Feb 2023 12:17:52 -0800 (PST) X-Received: by 2002:a2e:a606:0:b0:290:4e41:429c with SMTP id v6-20020a2ea606000000b002904e41429cmr1289803ljp.4.1676405872426; Tue, 14 Feb 2023 12:17:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676405872; cv=none; d=google.com; s=arc-20160816; b=TuHw9ti00R3VxXt2WXkAtIGoJkertWpFZ2465oifokMg72gKc/26gdP3WVpGFll5FA tcXwNTkNZeMNciV7YhWs6ph3MFrxEqa5/YG3DEw3gRin1YWOW5BU+Tqdct49ISbp/Cdz sWzWCW+S5glAz8SxGBq+c4UGn4hOcCAWyoh51sw8VL6CiGKyFOw6epT1e0xSkfBzKCtS mrS3pWnO782ZhWglCrD9P5dJqP0ZPiXD2BFCVedBnLHo8J2r53rMTqtDTjuYbl5ww5Fz /VJLmkozvEpTU6Vkah2ItKovZ1qR5Wcs9BBD6phEO0CzGX1LXSZr15VJ+biicKY29NcY Khuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=vwkXcUInB2EUEQSkG9q9miejkNRd1B/jsyxNsC2lXqo=; b=lf+ocRxhTdQYaULeoU2u2G4vBpijYKbPMtRp//tm8qg5hvnVIoiIfboPgwxidRXZB3 qi7RGf05K2METtr3dAZ3XChSJnkhpfgPSsjhgCbJ8HZ8ir6e9P3AHFqx7wCajdAjqvQJ BT/6682GVZCr3YdARudUGq+CA83Ubrwq/SVWCKRVEMQ+fWyLD20r67mSZhEO6OABcs4w AAziWSdCaZz+3Cr3ZqOHqvG+PwHNkaL9VSSBFzuEZhiLtF0xe3csxPyH1Ah8YfbJJvyc 1bMHnaCHioy0YSzgOrMt2+xYQiig21VuE3lKtoBmaAjiv0/TYYtRMg02ILX93GEbO1cP UtHQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id z7-20020a2ebe07000000b002905672e241si732711ljq.5.2023.02.14.12.17.52 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2023 12:17:52 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4PGXZR6DqSz1r2ZD; Tue, 14 Feb 2023 21:17:51 +0100 (CET) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4PGXZR5rv2z1qqlS; Tue, 14 Feb 2023 21:17:51 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id RoJ1wKrmDLVj; Tue, 14 Feb 2023 21:17:49 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (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 mail.mnet-online.de (Postfix) with ESMTPS; Tue, 14 Feb 2023 21:17:49 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id E56F945409D5; Tue, 14 Feb 2023 21:17:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 4hYsrDQfXYRG; Tue, 14 Feb 2023 21:17:46 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 87F62454077C; Tue, 14 Feb 2023 21:17:46 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH] Reduce Lua verbosity Date: Tue, 14 Feb 2023 21:17:41 +0100 Message-Id: <20230214201741.4145334-1-sbabic@denx.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Reduce Lua verbosity
|
expand
|
diff --git a/corelib/lua_interface.c b/corelib/lua_interface.c index 4d59e7b..3268a7b 100644 --- a/corelib/lua_interface.c +++ b/corelib/lua_interface.c @@ -1563,7 +1563,8 @@ int lua_parser_fn(lua_State *L, const char *fcn, struct img_type *img) return -1; } - LUAstackDump(L); + if (loglevel >= DEBUGLEVEL) + LUAstackDump(L); ret = lua_toboolean(L, -2) ? 0 : -1; diff --git a/parser/parser.c b/parser/parser.c index 98f98e7..23fcfef 100644 --- a/parser/parser.c +++ b/parser/parser.c @@ -923,7 +923,8 @@ static int parser(parsertype p, void *cfg, struct swupdate_cfg *swcfg) } if (swcfg->embscript) { - TRACE("Found Lua Software:\n%s", swcfg->embscript); + if (loglevel >= DEBUGLEVEL) + TRACE("Found Lua Software:\n%s", swcfg->embscript); L = lua_parser_init(swcfg->embscript, &swcfg->bootloader); if (!L) { ERROR("Required embedded script that cannot be loaded");
Dump the Lua Stack and en embedded script just in case the log level is set to DEBUG. Signed-off-by: Stefano Babic <sbabic@denx.de> --- corelib/lua_interface.c | 3 ++- parser/parser.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)