From patchwork Fri Apr 12 04:27:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ivanhu X-Patchwork-Id: 1922836 Return-Path: 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=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VG3Sv1Wxpz1yYP for ; Fri, 12 Apr 2024 14:27:43 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rv8Vl-0007zQ-8q; Fri, 12 Apr 2024 04:27:37 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rv8Vj-0007z6-Rw for fwts-devel@lists.ubuntu.com; Fri, 12 Apr 2024 04:27:35 +0000 Received: from canonical.com (unknown [10.101.194.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 1A87E40EF1 for ; Fri, 12 Apr 2024 04:27:34 +0000 (UTC) From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] lib: fwts_log_html: fix the invalid printf format string Date: Fri, 12 Apr 2024 12:27:22 +0800 Message-Id: <20240412042722.72002-2-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240412042722.72002-1-ivan.hu@canonical.com> References: <20240412042722.72002-1-ivan.hu@canonical.com> MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" BugLink: https://bugs.launchpad.net/fwts/+bug/2061067 fix invalid printf format string complained by coverity, CID 323914: (#1 of 1): Invalid printf format string (PRINTF_ARGS) format_error: Invalid conversion specifier in %;. Signed-off-by: Ivan Hu --- src/lib/src/fwts_log_html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/src/fwts_log_html.c b/src/lib/src/fwts_log_html.c index 1f6fc931..e8de985d 100644 --- a/src/lib/src/fwts_log_html.c +++ b/src/lib/src/fwts_log_html.c @@ -441,7 +441,7 @@ static void fwts_log_open_html(fwts_log_file *log_file) ".style_subtest { background-color: lightgray; }\n" ".style_infos { max-width:90em }\n" ".style_code { font-family: \"courier\",\"mono\"; font-size:0.75em; overflow:auto; " - "width:90%; line-height:1.08em; font-stretch:extra-condensed; word-wrap:normal }\n"); + "width:90%%; line-height:1.08em; font-stretch:extra-condensed; word-wrap:normal }\n"); fwts_log_html(log_file, "\n"); fflush(log_file->fp);