summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-22 05:05:28 -0600
committerTom Rini <trini@konsulko.com>2017-06-05 14:13:06 -0400
commitc91001f608597a727261449b3c6fd3afe7d6551c (patch)
tree0e7cba82f0c124a5f0d5ec903fbd7584b33ad605
parent03ecac314988c01c3df0c935afaacc8fce229224 (diff)
downloadu-boot-c91001f608597a727261449b3c6fd3afe7d6551c.tar.gz
u-boot-c91001f608597a727261449b3c6fd3afe7d6551c.tar.bz2
u-boot-c91001f608597a727261449b3c6fd3afe7d6551c.zip
bootstage: Show records with a zero time
We can now use the record count to determine whether a record is valid or not. Drop the test for a zero time. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/bootstage.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/common/bootstage.c b/common/bootstage.c
index 8cd2fb5e1b..1afdee3018 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -390,18 +390,15 @@ int bootstage_stash(void *base, int size)
/* Write the records, silently stopping when we run out of space */
for (rec = data->record, i = 0; i < data->rec_count; i++, rec++) {
- if (rec->time_us != 0)
- append_data(&ptr, end, rec, sizeof(*rec));
+ append_data(&ptr, end, rec, sizeof(*rec));
}
/* Write the name strings */
for (rec = data->record, i = 0; i < data->rec_count; i++, rec++) {
- if (rec->time_us != 0) {
- const char *name;
+ const char *name;
- name = get_record_name(buf, sizeof(buf), rec);
- append_data(&ptr, end, name, strlen(name) + 1);
- }
+ name = get_record_name(buf, sizeof(buf), rec);
+ append_data(&ptr, end, name, strlen(name) + 1);
}
/* Check for buffer overflow */