diff options
author | Simon Glass <sjg@chromium.org> | 2023-09-26 08:14:49 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-06 14:38:13 -0400 |
commit | 97192937bf0edaa4865bc13487ee35e913c6a2c5 (patch) | |
tree | 920d6230754c6be816788a6e844970c0639ee12d /arch/sandbox/cpu/state.c | |
parent | a64fec9f1760edfcea904306f6fbcd13b464b3f1 (diff) |
sandbox: Only read the state if we have a state file
We should not read this unless requested. Make it conditional on the
option being provided.
Add some debugging to show the state being written.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu/state.c')
-rw-r--r-- | arch/sandbox/cpu/state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c index fcc0028ff4a..e38bb248b7f 100644 --- a/arch/sandbox/cpu/state.c +++ b/arch/sandbox/cpu/state.c @@ -521,6 +521,7 @@ int state_uninit(void) printf("Failed to write sandbox state\n"); return -1; } + log_debug("Wrote state to file '%s'\n", state->ram_buf_fname); } /* Delete this at the last moment so as not to upset gdb too much */ |