From patchwork Mon Dec 11 09:13:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 752504 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp1197396wrs; Mon, 11 Dec 2023 01:15:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2+bB2Msl7pMiMydbsby/FodumO7bM55WJwujnIto8bKhEfXjpcMqFJvpQGWhL47OB6nka X-Received: by 2002:a0c:f992:0:b0:67a:d9f5:19fc with SMTP id t18-20020a0cf992000000b0067ad9f519fcmr5794459qvn.28.1702286102346; Mon, 11 Dec 2023 01:15:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702286102; cv=none; d=google.com; s=arc-20160816; b=tF/hCgyrlFOadAonmyuyeRinMZ8LSCvv/Yf6kEiDK7B4LAozgiKQd5fOdRAFufQFRF FvCHqWs7bPxsUHRUXxGHvf09DbwxnhYZ4GDDrjmwtV0gGbnvZA64Nj/5MIaiwuDZpeLC aYXXfUv+jUa+EMjMFgT0rEM28dAR8wKLjzvKeRIM9a0BvR2pu7JjOtgoX5QrlqAJNYoE BA6xsjNm4KrCgbzADaPe79Vw1dqz4ZsUq9D5J8CLZZjzxbPkjLIFw58S6LwNyxBo9ZQQ t6Iuotu2xId+hYvmooKVZDKfsqEF3B6BfwrINEDmUq6lz7sGgiFI7Tx5ZTdWQSKQAxfI LNtA== 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=jMhVIXqtIwGitOVNFv/q8yt8hGURWr68L+NA/7+kuZo=; fh=5P/wIgpI0FmPL++m2PNNQNTrejW6t3h7Ix4gz+ehGxw=; b=H/B9DXUOF6Ve/YUGOzJ3UVDF3R/QMCvIyoG2e8fPEYepG6u0bOcp7R+bzCEk21eeIu +hfLeBlqRm3aL9sVmXxC84mkV4UqtyQbRYRpBPDZCcIco09Si7hJk3YUMkm7zO5ZwjVN hRQr5RFeB+Ub3zRRDxJc25866VN0E4un8ZGrPk2ID0O6fDu2Iqkk0Xk/Y5/0h9xOeRx3 AuepkxDbvMqzUP1RzOV+4UnDvAEE0niYjqkc8XlCWLZJoKxniG32PA1F3vFJwOzUxIap v8PSCwY5K98XVSA6ISMCg8XPyXeDiuHChSMq6aO69W+aNYkREXvLRzggowPjLsZhKw+t Kn+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eodwA7y2; 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 qf18-20020a0562144b9200b0067eaa04ddd1si7784225qvb.143.2023.12.11.01.15.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Dec 2023 01:15:02 -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=eodwA7y2; 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 1rCcMT-0001RW-Mg; Mon, 11 Dec 2023 04:14:01 -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 1rCcMR-0001Qc-Mw for qemu-devel@nongnu.org; Mon, 11 Dec 2023 04:13:59 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCcMQ-0004MC-5E for qemu-devel@nongnu.org; Mon, 11 Dec 2023 04:13:59 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-333536432e0so3999348f8f.3 for ; Mon, 11 Dec 2023 01:13:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702286036; x=1702890836; darn=nongnu.org; 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=jMhVIXqtIwGitOVNFv/q8yt8hGURWr68L+NA/7+kuZo=; b=eodwA7y2MaCqylSPffVz7WjYDgNPuw/37KHNYb8dnB3JwWJ717EWnzHGGXwI7mEgEK Q+Z8vpGG7B7fHONaabLxJ3M89IzgVESJAQUAT+xWZnqbDY+ta348WiNkB/UOJiXcPtzy NPNS350ePu62pONVsMLl0KZh1CzNylQDIhaTtLqx8CD1avcCVh+4g1Nn3lTPJCoMCleM QAWKjS54VvqimdOhjogCQqOQI8OuhfA3y7BDXEZBOeNX2mAw0+cMa/q4usi8AoCHGYyl a0G+OGCDqqeOLoNR1GInZzxPPXbTdPNVFUQvD0bw1s+bTbY0HnWvcrgLgceujnr0iyP1 yiGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702286036; x=1702890836; 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=jMhVIXqtIwGitOVNFv/q8yt8hGURWr68L+NA/7+kuZo=; b=vZA39zwUvbH2HfH+wallNMuYhzUrWGp2N2+E4HFl9ycHNjQZNdfxBL3nQhYEX50qdk +ZrKEutL3C86NvdqqzVpqZ2AHdbMu2OnW2zoJpqWMsiv/tbd5Jn7PWeqtQ3R1nRuoz6g Tf1krgsufF+MvvdSZ/bRSo495FkPM3B1BTONdKs4RzAZZ9Yswm/yZaKvGvVoFg8HXK7X OlqnYRhcjLhSvO8xMqiOaNnPVFLjJaFw98Pvi0plmLIWZbkhFkwGNuP2vqg2sUDNd0YK d/wf/HdPgWfKLHiiRrrMYkPFUpHHAqG/o+mM9wil0Mq8S2BIMtQhAHV+YJSzUrJgrXSu tXyA== X-Gm-Message-State: AOJu0YzdNPhkpcg/ghTTXjx4ozRhJmIAs7aBtCVg1ZOWuPK+lLNkl3b0 cAGF41HyZPut9FS8HMxNbct2Kg== X-Received: by 2002:a5d:698b:0:b0:336:989:1baf with SMTP id g11-20020a5d698b000000b0033609891bafmr2085634wru.40.1702286036331; Mon, 11 Dec 2023 01:13:56 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id o1-20020adfe801000000b003333c06fa79sm8121030wrm.71.2023.12.11.01.13.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 01:13:51 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id F2F315FBC6; Mon, 11 Dec 2023 09:13:46 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Eduardo Habkost , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Wainer dos Santos Moschetta , Cleber Rosa , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Beraldo Leal , Richard Henderson , Pavel Dovgalyuk , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v2 10/16] replay/replay-char: use report_sync_error Date: Mon, 11 Dec 2023 09:13:39 +0000 Message-Id: <20231211091346.14616-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231211091346.14616-1-alex.bennee@linaro.org> References: <20231211091346.14616-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Now we have a centralised report function use it for missing character events. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- replay/replay-char.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/replay/replay-char.c b/replay/replay-char.c index a31aded032..72b1f832dd 100644 --- a/replay/replay-char.c +++ b/replay/replay-char.c @@ -113,8 +113,7 @@ void replay_char_write_event_load(int *res, int *offset) *offset = replay_get_dword(); replay_finish_event(); } else { - error_report("Missing character write event in the replay log"); - exit(1); + replay_sync_error("Missing character write event in the replay log"); } } @@ -135,8 +134,7 @@ int replay_char_read_all_load(uint8_t *buf) replay_finish_event(); return res; } else { - error_report("Missing character read all event in the replay log"); - exit(1); + replay_sync_error("Missing character read all event in the replay log"); } }