sandbox: Show a message when writing out the ram buffer
authorSimon Glass <sjg@chromium.org>
Mon, 28 Feb 2022 22:13:45 +0000 (15:13 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 19 Mar 2022 01:24:24 +0000 (19:24 -0600)
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 <sjg@chromium.org>
arch/sandbox/cpu/state.c

index ce904b1..e0d0112 100644 (file)
@@ -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 */