From patchwork Fri Apr 12 07:33:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 788251 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp590539wrm; Fri, 12 Apr 2024 00:34:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVcPD/sLRISJZhAo4ap9ADgEj6ZCEX3/WQMTkN+T/Du1D+f+kL7B91laAqs+UGoK+C/7LWkY2hJaFGJNrZ8Wq/E X-Google-Smtp-Source: AGHT+IHbWRiUgpLZR09whDtILhlaTSAYHDl/f4tc7Wl1sINpu+Pc9O3vVjZh5NQumzjmbuhCEm9S X-Received: by 2002:a05:6214:4c:b0:69b:29b2:9ae9 with SMTP id c12-20020a056214004c00b0069b29b29ae9mr1799050qvr.64.1712907282242; Fri, 12 Apr 2024 00:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712907282; cv=none; d=google.com; s=arc-20160816; b=e0dJprLpHHDeV9kXZFJ16twfhdObprZaJlcJwGbNl1DZSVF5IHtZ1E/oreWqO571I/ OUUuS5d75aIrBhnUZ+D/qVfkeXD4Gst6LLmlV9pgSnQSTe1l9kZphXoJBjp6MYaR1E4c 6lKtxZ3ifvqa2h5MfW/95Eq+cnhNdA8YassdKBX7nk7B/yCXVs5Yy4jhZ+Qj4xXmBHtC V0E/zv9sO1BmVd1I3/v1g+zCKlJpbNp9I48qs3OKoNDtuGWekvzRU215lBWjuGVJfTm9 FtYrUGs0HEuzvwH/IQEraC6Q7ORE6M0XTyZKE4J2z05e+M1YNUkeS5qe5fXvyeWSHEgb pYAQ== 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:message-id:date:subject:to:from:dkim-signature; bh=wA/Z0yFKpXqvP59rryTrHQVNqpWGjyyXV79BO4MCFxQ=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=p5gArta6+1w0GU6YnikaH1cAfIJX9mfGJsoMzZmdXLDGcIIZr0WHpBhj7KtmQ0Iv1O jtbGFp4vQhYhqPQ/ETB1HgKTgSprK/s+m+rtmPE84G6vW90FlahVpVV8LHx7K/86foHN B1KZWdTMDOHDqBGkTNMNK2wMjvGXR1VlDeTNT6zfYA8FnmTJVHNvQGIs51CVfpSs45yL sncE/T9AISf1WEu0vdjpiPhEciSvKzLCr+95sjyj+w4th3i/lQNjf2hIE9/d3aM/zcIm 1DMzCcGhEmE26Adp/+u2zRdZ8rxNkJp34izYMoJxKhgv6sckTZAtzTSRFtKWAdxGM5xB paGQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D32tte0e; 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 bp17-20020a05621407f100b0069932ba59e7si3053266qvb.409.2024.04.12.00.34.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Apr 2024 00:34:42 -0700 (PDT) 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=D32tte0e; 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 1rvBQ0-0006xC-II; Fri, 12 Apr 2024 03:33:52 -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 1rvBPz-0006wv-Ki for qemu-devel@nongnu.org; Fri, 12 Apr 2024 03:33:51 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvBPx-00074Y-Oe for qemu-devel@nongnu.org; Fri, 12 Apr 2024 03:33:51 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1e3f17c6491so5935845ad.2 for ; Fri, 12 Apr 2024 00:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712907227; x=1713512027; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=wA/Z0yFKpXqvP59rryTrHQVNqpWGjyyXV79BO4MCFxQ=; b=D32tte0eSPrIZcSxBCBbosnCrJRNabn0B4qKipx6jFcb1APh700luBYVohe/HnHmSL +2GFpUWzard54aXhiGl5RS7/JUTGQo+X2jX0h51rWeS+PRIvzwClok8ql7byDuBBYLUt wcvMjJqqBDAdQ1T+04SjjMK1JFEW59/C6U/4cUCF8Slds792RxfJoVoxIV0HQB8JQ+sg M/ilfaS2E9X/tRo0J0XYdDP8xtIiXSbJt7BDfYChYuj9NvdikASwZmxUcr4Z6pqbBeD8 7gWaXvPYh3Z4CaT7tQr7RMqmcS8450xzvYOmWuhp6SlG/FGX/YJxArJV3ze1hGkmBWS4 OPuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712907227; x=1713512027; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wA/Z0yFKpXqvP59rryTrHQVNqpWGjyyXV79BO4MCFxQ=; b=LcgQTJbNV3bVqlHGjDyF8ae3ofKjQqtDxKL1T+GoE7TGDkEHdLv/hKItskHJZiNwn5 ezJJjJ+AtcpXL30FeoomjsXpcNhJYV3gIUu3hvNw1JZGNWlFWk164nNlHWxrqdxh8Wl4 1nL1tT2R9v2pFnAquiVNKe5dREmhg75HuML7ob+9f7ZY0RuUIsBZoBmfjIQLRQrPTlkQ 9od7oTrecsIsCV5H/vNCfiHb9C0KFyJ60keat6bWa+eujBthPzJ7fIYGr8iEIC6Ko5f2 5ZJ0bZwj8yGGxS1x7js6jvaOHjyiMH+kqCAwmHgJ4hkEGIwUAfx0N8iCRC/1sobX9DRy fI8g== X-Gm-Message-State: AOJu0Yw7xU7ptWDs1eLCmT9iNzGbunmAlkUDPMsiiBPtEJ5KBPaDDpGH uf1uyYCRJU8Io0uHb4cxDmCatVP3f2wdSNPCmceu1PvU55LIRVc9D9NGnd/VdB07AZFreuHpawy s X-Received: by 2002:a17:902:ec85:b0:1e5:559b:fa98 with SMTP id x5-20020a170902ec8500b001e5559bfa98mr2065437plg.34.1712907227406; Fri, 12 Apr 2024 00:33:47 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id e5-20020a17090301c500b001e556734814sm2206099plh.134.2024.04.12.00.33.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 00:33:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 00/27] misc: Replace sprintf Date: Fri, 12 Apr 2024 00:33:19 -0700 Message-Id: <20240412073346.458116-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62b.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 Hi Phil, This incorporates my comments against 20240411104340.6617-1-philmd@linaro.org and 20240411101550.99392-1-philmd@linaro.org Especially cleanups to hexdup and disas. r~ Philippe Mathieu-Daudé (13): hw/mips/malta: Add re-usable rng_seed_hex_new() method system/qtest: Replace sprintf by qemu_hexdump_line hw/scsi/scsi-disk: Use qemu_hexdump_line to avoid sprintf hw/ide/atapi: Use qemu_hexdump_line to avoid sprintf hw/dma/pl330: Use qemu_hexdump_line to avoid sprintf backends/tpm: Use qemu_hexdump_line to avoid sprintf disas/m68k: Replace sprintf() by snprintf() disas/microblaze: Replace sprintf() by snprintf() linux-user/flatload: Replace sprintf() by snprintf() hw/misc/imx: Replace sprintf() by snprintf() hw/net/rocker: Replace sprintf() by snprintf() hw/riscv/virt: Replace sprintf by g_strdup_printf target/arm: Replace sprintf() by snprintf() Richard Henderson (14): util/hexdump: Remove b parameter from qemu_hexdump_line util/hexdump: Remove ascii parameter from qemu_hexdump_line util/hexdump: Use a GString for qemu_hexdump_line util/hexdump: Add unit_len and block_len to qemu_hexdump_line util/hexdump: Inline g_string_append_printf "%02x" disas/microblaze: Split out print_immval_addr target/microblaze: Re-indent print_insn_microblaze disas/microblaze: Merge op->name output into each fprintf disas/microblaze: Print registers directly with PRIreg disas/microblaze: Print immediates directly with PRIimm disas/microblaze: Print registers directly with PRIrfsl disas/microblaze: Split get_field_special disas/riscv: Use GString in format_inst target/i386/kvm: Improve KVM_EXIT_NOTIFY warnings include/qemu/cutils.h | 20 +- backends/tpm/tpm_util.c | 24 +- disas/m68k.c | 2 +- disas/microblaze.c | 544 +++++++++++++++++----------------------- disas/riscv.c | 209 +++++++-------- hw/dma/pl330.c | 23 +- hw/ide/atapi.c | 12 +- hw/mips/malta.c | 25 +- hw/misc/imx25_ccm.c | 2 +- hw/misc/imx31_ccm.c | 2 +- hw/misc/imx6_ccm.c | 4 +- hw/misc/imx6_src.c | 2 +- hw/misc/imx6ul_ccm.c | 4 +- hw/misc/imx7_src.c | 2 +- hw/net/imx_fec.c | 2 +- hw/net/rocker/rocker.c | 24 +- hw/riscv/virt.c | 17 +- hw/scsi/scsi-disk.c | 13 +- hw/ssi/imx_spi.c | 2 +- hw/virtio/vhost-vdpa.c | 14 +- linux-user/flatload.c | 2 +- system/qtest.c | 12 +- target/arm/cpu64.c | 4 +- target/i386/kvm/kvm.c | 12 +- util/hexdump.c | 98 +++++--- hw/virtio/trace-events | 2 +- 26 files changed, 494 insertions(+), 583 deletions(-)