From patchwork Tue Nov 1 11:44:55 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: 620452 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp3486920pvb; Tue, 1 Nov 2022 04:46:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FnQGVwfkFn27VmxZy3ZFur4bDByVxt2VFDpu3XjUdB5pXeXw0H6F2lClBgMtx3gZndB4l X-Received: by 2002:a05:622a:2cf:b0:39c:e120:4acc with SMTP id a15-20020a05622a02cf00b0039ce1204accmr14635100qtx.152.1667303169847; Tue, 01 Nov 2022 04:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667303169; cv=none; d=google.com; s=arc-20160816; b=d/VZ8xBEdLrqCRU51zwYCEg5UmbZt1dv+Xb0t7j4Uaxo899nvM/1qHrKBP1XUnhAWy DvZntweNdO2gV24Se7PMQoAoeINhMNoOORpW6uS55V1IEQuLF5thrYfKvwBHKKjb6QeZ 7PDroRgUBDEI5H2s0NzfbMl0Rtt3m8GY/CgHLPQtYhfcw1LX1aKUiCOm1gxMdZOtTWAN qVmovHAca+smqh8n3ZlYjsDlXTWm7PUROKiDE0yb6Cl89FC+hOojU1JW7pWb0GMAOc9I yewTyv6mQaRejxY4q7F1JhpjCyy+01DATxBkGfUiLprJjpH3rEtGWeANF8fXRmPcH6p6 iszw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender: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=yBytmr5TleNMxUcv80n5M2RRq/s8QMuW5oRDWbLlEbg=; b=yAU087ktKVvwmaQJtv3kLaCHK1oAZvH1F0osDz+JnRjvEoPN4I6SuD3tQmDSwV2t1I PrGIjZh4WcYPIQhNNMpYYvS34585C5n852yEqXB9MK99V2eEztEuy9rcFn0lxlMBhzyn hLJ5++UTq9zle9wMrGAzN5VE85oA36MjT9uWM/L+cKbu9PIl2NkCcOQryBAYgRLg78CL AwIvju3/Gtii+aa9RvycVD0gD8iBPVU+DNLjN63Bs26bz6Zj8PoAnjDWruYNt6l8viyt H5ZMrEk83pgi8JGUX9kyg46afD4pNswJu9sfIujcDcvLU7p9WcF0oBld0S4HXqaYgd6M PDKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K4+pj2UV; spf=pass (google.com: domain of qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+peter.griffin=linaro.org+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 r11-20020a05620a298b00b006f9754556e9si6788064qkp.230.2022.11.01.04.46.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Nov 2022 04:46:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+peter.griffin=linaro.org+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=K4+pj2UV; spf=pass (google.com: domain of qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+peter.griffin=linaro.org+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 1opphz-0006hK-9l; Tue, 01 Nov 2022 07:45:31 -0400 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 1oppht-0006eg-Gk for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:27 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opphl-0004Iv-Sx for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:21 -0400 Received: by mail-wm1-x336.google.com with SMTP id m29-20020a05600c3b1d00b003c6bf423c71so12602103wms.0 for ; Tue, 01 Nov 2022 04:45:16 -0700 (PDT) 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=yBytmr5TleNMxUcv80n5M2RRq/s8QMuW5oRDWbLlEbg=; b=K4+pj2UVW04wZmto8Txzak/myD4fbW7IYx0t2qINkYnnn3UpkGDV0AUJBAjC5OiIts rqrz2hNiLcotPYWXkhrJ2pzRAxfeVddFuR9tzASeJXa4lUPE4lPY+LX153eHu3SYdQ8L Xzv+xUxiL62yLsZzGEtilgqfUPEmOh65k9hTheRC7GnOL2Zjc9Fmqn1Tcd+yW9ZjxPdF 5wzHQkDJBjheDQ+EYDXD8bdQFXfFK/5Xndiert01jLWKhrF2GW10IaYS7qhjWSGyReyK YPkz2S0qIPnHjwdbmZ4OOMZOD6Crgm4kG8yIN+ZBD1dCN2eQAZOnR1os11mcvDbxsgxb J6pg== 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=yBytmr5TleNMxUcv80n5M2RRq/s8QMuW5oRDWbLlEbg=; b=XWYDiWZ/+TVSNnZDm5Eko1VHL98o6brkLFJLLipDZJVmyOpkNo2dvIA0LROWIRj4V7 0K03YXmg4LNapGB8C8K831iWNknNYL/TpW0+ilZQNUdhqHjqhIKc+7JO8Lw3vzHhZ4PG vDQYfH8G/ycJxF3l/B1bgFerv3B+DVhK9N/lCh6FrkgwANmEitiQeuDI0k2lTmOYNVhi 1LT9JF/nEqVu+GwbfDfzDl4FbB0PM4/eH3r8pTaX/aoo+czZoUybtT4vXKfF/XfPrxm0 u+wwJyO8kwFLaNp5j8YceKKfHZn8RbtsO8n5qLnZc/BKTOHUGgBaoUdwnXzsGpmMqqWI KceA== X-Gm-Message-State: ACrzQf2WZpclUILN/h+caaQ4Jri2BIFF8vfQv68YUjxV/A6J6FGxAIJo A5hJgBAiDoVx8wvwIqKViZwwGzc2ceouvg== X-Received: by 2002:a05:600c:13c9:b0:3cf:5b8f:a7cf with SMTP id e9-20020a05600c13c900b003cf5b8fa7cfmr11972692wmg.153.1667303114696; Tue, 01 Nov 2022 04:45:14 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003cf4c1e211fsm10937322wmq.38.2022.11.01.04.45.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Nov 2022 04:45:14 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aleksandar Rikalo , Aurelien Jarno , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Petar Jovanovic , Stefan Weil , Jiaxun Yang Subject: [PATCH 2/5] disas/nanomips: Fix invalid PRIx64 format calling img_format() Date: Tue, 1 Nov 2022 12:44:55 +0100 Message-Id: <20221101114458.25756-3-philmd@linaro.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101114458.25756-1-philmd@linaro.org> References: <20221101114458.25756-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+peter.griffin=linaro.org+patch=linaro.org@nongnu.org Fix: disas/nanomips.c:12231:62: warning: format specifies type 'char *' but the argument has type 'uint64' (aka 'unsigned long long') [-Wformat] return img_format("RESTOREF 0x%" PRIx64 ", %s", u_value, count_value); ~~ ^~~~~~~~~~~ %llu Fixes: 4066c152b3 ("disas/nanomips: Remove IMMEDIATE functions") Reported-by: Stefan Weil Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Weil --- disas/nanomips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disas/nanomips.c b/disas/nanomips.c index 6466c80dc5..e4b21e7c45 100644 --- a/disas/nanomips.c +++ b/disas/nanomips.c @@ -12235,7 +12235,8 @@ static char *RESTOREF(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); - return img_format("RESTOREF 0x%" PRIx64 ", %s", u_value, count_value); + return img_format("RESTOREF 0x%" PRIx64 ", 0x%" PRIx64, + u_value, count_value); }