bootstage: Store the next ID in the stash
authorSimon Glass <sjg@chromium.org>
Mon, 21 Oct 2019 23:26:47 +0000 (17:26 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 27 Oct 2019 16:56:51 +0000 (10:56 -0600)
commit53a4f253f129926bb5398634c8bae43ab788342d
tree643ebff2936eea09622bec6f01dbbe907ae3b6c0
parent5074a8a3c0d0d1e11a1d51a7fb0ce8746668046f
bootstage: Store the next ID in the stash

When stashing bootstage info, store the next ID so that it can be used
when the stash is restored. This avoids the ID starting at zero and
potentially overwriting existing entries.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/bootstage.c