From patchwork Mon Nov 7 23:58:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 622255 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2556530pvb; Mon, 7 Nov 2022 15:59:48 -0800 (PST) X-Google-Smtp-Source: AMsMyM4A7gutg7HuQ/CI1/HdWOQxSNoTTigJfBDuLXXzhiJfZIZ7bH6jYGT7RnNa5st/wS0bOS/v X-Received: by 2002:ac8:761a:0:b0:3a5:229e:c51f with SMTP id t26-20020ac8761a000000b003a5229ec51fmr35772804qtq.412.1667865588406; Mon, 07 Nov 2022 15:59:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667865588; cv=none; d=google.com; s=arc-20160816; b=lgRA9msYx1ILVEgz+R6Lbe2HBcPm4a1j3z8LPglhgpEeVeDokKFL73ltRFE+i2njvL dihR5BxLlU5Mu5VcriM6l0vNkqbZc0XOzSsSAnApmwiBAZBD4sXgEIrvqM0h6cTt6Ozl c1esgO+it+EBsH7WZ0ouNqd2OyTSlY+01XnUJNH3EgUpsoktlbcaikoTHuIjkUEZbyS+ ldGvibOQrQncZHvtCd62uNxezyKmRcN830c51zi+kerz1iSNDkLkePYGm/FhIIQRKBIz RUGB/OfIqq4fH2rTX27UV2Z4G0NXOYehFf9AC6raLRqEJXdhVnNnJtZTgY9TmWU1KB/E gSHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gGjizUHazVMEhGpGHPz/tSQ2RTzswCYSaXcHonZGCKI=; b=CxUVWyuZ0nto63dKxo2vlF+Uzc2hdS8n24aRf59DxK/1GolFY+I4GSQsh3LPeMTl2i S8+BxMFlzZ7lh6r8HO14MLgr+T1Vcqsc8UY2JHAf31yJQkgzB0spRK7rXqx/xrZtv14Y hcb5z0VpmZC/dxXzYEGY4LO2bZ137DtJGGMjgzLKGS44/wxAZoVZHNhl6OGd3EEDjQcm 9MGVtLlt0yQG88QA/+yj0jAgt3lpKtdFkqXqP4fKNn3RsRYPN315gw5Blf8Z0cQ9Ecbr +uCct2dG4e5/uu8p38UtAUUf/1vYTf73d5MkYN0IQZb2R42GQXa9iJr1X0lfrB5+4tBP a2XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aDQpPQOO; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f5-20020a05622a114500b0039cbbc11e60si5332939qty.740.2022.11.07.15.59.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Nov 2022 15:59:48 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aDQpPQOO; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osC1C-0004Q6-Ul; Mon, 07 Nov 2022 18:59:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osC1B-0004Pm-HS for qemu-devel@nongnu.org; Mon, 07 Nov 2022 18:59:05 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osC1A-0001Wm-27 for qemu-devel@nongnu.org; Mon, 07 Nov 2022 18:59:05 -0500 Received: by mail-wr1-x42c.google.com with SMTP id cl5so18500112wrb.9 for ; Mon, 07 Nov 2022 15:59:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gGjizUHazVMEhGpGHPz/tSQ2RTzswCYSaXcHonZGCKI=; b=aDQpPQOOIuRPCIbsGhazbvF5TfVzNjXghvrVtQoCYaR+/HHUH0QFdCLIb9QleD2eIK dxMzyWyDt8RmfDjA8P9xvw1IvLXqw7t8q7beEuAD3tY8gMQfOp7zZmY0qq/HEZG9LH2t F9GlrS6K0tHA0pkhEiahDYgCOqyI4ZZhX+TohtHPU3yoeFytTwX6oIwn3/HG/bBPU/KJ LqFT0CTJg47gLb+MNzkYXyxN1DPhdueEpuO92HUUljl773QcZapYL9rlTFQdyeV82hZE rDEjuqBHt0P5kueus7jbHCV0gngVucyOGDb0WKyHXy7YpObs33CG4Lnj1dmychqd7me/ 0Dvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gGjizUHazVMEhGpGHPz/tSQ2RTzswCYSaXcHonZGCKI=; b=Qv+T7nsRPhIDc1eO8kolXfwX2H7b3NBsK6UDlBkvUa4eqyCsHqBLHle3iDkSTrrCcN DVUsTbW0gaWRHU4tEiatbGTj8VY/qz1lzmYXR/LMKwSTQi/ctP3pVBvoM8AInU80TF+Z UsICB/Qbu3i+4oIl2qIx/HlxMlxj58RMpor1eYhg0AlK8mFjBkuTprC66ZPMgjUU5cz8 O67AeKS9HC5ufXt6440x4tTj2679wx2LhA7qGmrmkL7JigVViohnGaOdr82iliSx7gmG pLj0o36PZ4TPf7v6JdJineyFXpen9gbWsGhPrlW14T16+uWdOTxXP8BiFfxjhkjZMFlU Assg== X-Gm-Message-State: ACrzQf3ZXd3dM5Nz7OWg0envx8egx5OihChLU/EPpdK+hbeanUkhDoy/ dFB8Gnf+AjKQqCL2NpUZGBC7ss/JCac/WA== X-Received: by 2002:a5d:4644:0:b0:236:cb94:4c6c with SMTP id j4-20020a5d4644000000b00236cb944c6cmr28684573wrs.544.1667865543324; Mon, 07 Nov 2022 15:59:03 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id j5-20020adfe505000000b0023c8026841csm8730142wrm.23.2022.11.07.15.59.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 07 Nov 2022 15:59:03 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , Aleksandar Rikalo , Jiaxun Yang , Stefan Weil Subject: [PULL 08/14] disas/nanomips: Use G_GNUC_PRINTF to avoid invalid string formats Date: Tue, 8 Nov 2022 00:58:16 +0100 Message-Id: <20221107235822.71458-9-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221107235822.71458-1-philmd@linaro.org> References: <20221107235822.71458-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Suggested-by: Stefan Weil Reviewed-by: Stefan Weil Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20221101114458.25756-4-philmd@linaro.org> --- disas/nanomips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disas/nanomips.c b/disas/nanomips.c index e4b21e7c45..3f45447292 100644 --- a/disas/nanomips.c +++ b/disas/nanomips.c @@ -95,7 +95,7 @@ typedef struct Pool { #define IMGASSERTONCE(test) -static char *img_format(const char *format, ...) +static char * G_GNUC_PRINTF(1, 2) img_format(const char *format, ...) { char *buffer; va_list args;