Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49005C433EF for ; Mon, 28 Feb 2022 22:14:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 276C983C8B; Mon, 28 Feb 2022 23:14:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="hxFROnAU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0400983CA3; Mon, 28 Feb 2022 23:14:11 +0100 (CET) Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A134783C58 for ; Mon, 28 Feb 2022 23:14:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd31.google.com with SMTP id r7so16449188iot.3 for ; Mon, 28 Feb 2022 14:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5MBOxxodADHZLeYJiy6CAZKTb6RW4gK3MDG2bGPgvag=; b=hxFROnAUcwQmES7jcPvTkYHwapphEFoLxAvXFdIWm0ZFXlBuo+3W/41oBDLFbmoGdG 2jVgnUvkVVGe5p9+AH4L9T8PQgnGk1I4LkV+Ggak+7bB2ElxGJFO5qD9CMlUqJedVDBT YL/uTNMpNNZAT6T/Y1JAOuWvL3GhqEs8vBkLk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5MBOxxodADHZLeYJiy6CAZKTb6RW4gK3MDG2bGPgvag=; b=URdFqCqIlg81rayF6q7mH6TZ49c77gQHZ75oNmh5h+YiN48j/yQBf319tVpKGi6u20 ozePDU2szwQeKLqgrkuN7tXWbkzT9D5hfZFGXV97sWVRcM2eJUFKWUC+bniwiGHojGvM 33JMIa7lL32FSjDGPDV2RmM3YsqB5pD+TYEgfmjXu7PUjEUJ0vO7+CSNBr6k5nCkP4By 9Uoh/MW3jtmWiX6/F9nAeWSiyRvTrVa0WnH28ccDa2MweJg/ZhUMaKf2yRzFH3FCXbA3 6qM486xSyFAvchbg9g23roFid7wNalOrx0Niom5EkDX0tKNcF/Fm1B6sET4VM3NdGl4X 6v1A== X-Gm-Message-State: AOAM533y63dlrTk984bfBdZSgZW6x5Qj5BKLzeJiicwnnRS2DPdJMcEw Hq4kqeQ6DNj+2t6gE2Cior6Hph4U+Mjw3A== X-Google-Smtp-Source: ABdhPJwijOvi0sikEk/me0jwZVBU/2K5EOZKoZT15vsHF3RdP+VhyxxRlUASRnhPTmM009HgQqmdPg== X-Received: by 2002:a6b:7417:0:b0:640:a379:c950 with SMTP id s23-20020a6b7417000000b00640a379c950mr16465915iog.38.1646086442815; Mon, 28 Feb 2022 14:14:02 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id y4-20020a056e021be400b002c2d3b1620esm4018843ilv.24.2022.02.28.14.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 14:14:02 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Heinrich Schuchardt , Steffen Jaeckel Subject: [PATCH 1/5] sandbox: Show a message when writing out the ram buffer Date: Mon, 28 Feb 2022 15:13:45 -0700 Message-Id: <20220228221350.1522599-2-sjg@chromium.org> X-Mailer: git-send-email 2.35.1.574.g5d30c73bfb-goog In-Reply-To: <20220228221350.1522599-1-sjg@chromium.org> References: <20220228221350.1522599-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean If state is not being written, but RAM is, we should still show a message, so it is clear that this is happening. Signed-off-by: Simon Glass --- arch/sandbox/cpu/state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c index ce904b1740..e0d01125bb 100644 --- a/arch/sandbox/cpu/state.c +++ b/arch/sandbox/cpu/state.c @@ -421,7 +421,8 @@ int state_uninit(void) { int err; - log_info("Writing sandbox state\n"); + if (state->write_ram_buf || state->write_state) + log_info("Writing sandbox state\n"); state = &main_state; /* Finish the bloblist, so that it is correct before writing memory */ -- 2.35.1.574.g5d30c73bfb-goog