diff options
author | Tom Rini <trini@konsulko.com> | 2021-03-28 20:29:39 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-28 20:29:39 -0400 |
commit | 4906238191b90be7aec2269ba8cd6aeb161cd312 (patch) | |
tree | 1bab411fe047542ab69342a90fba6110f4dbe124 /common/bootstage.c | |
parent | 9c7335e4e68355a96bd5a411b2a5f85866823c58 (diff) | |
parent | e5021221db3faf7e90a295d6eb045fbf5c6a908b (diff) | |
download | u-boot-WIP/28Mar2021-next.zip u-boot-WIP/28Mar2021-next.tar.gz u-boot-WIP/28Mar2021-next.tar.bz2 |
Merge tag 'dm-pull-28mar21' of git://git.denx.de/u-boot-dm into nextWIP/28Mar2021-next
binman support for expanding entries, connections
misc fixes and improvements to sandbox, etc.
x86 CBFS improvements
x86 coreboot improvements
Diffstat (limited to 'common/bootstage.c')
-rw-r--r-- | common/bootstage.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/common/bootstage.c b/common/bootstage.c index 2c0110c..4621105 100644 --- a/common/bootstage.c +++ b/common/bootstage.c @@ -9,6 +9,8 @@ * permits accurate timestamping of each. */ +#define LOG_CATEGORY LOGC_BOOT + #include <common.h> #include <bootstage.h> #include <hang.h> @@ -127,12 +129,16 @@ ulong bootstage_add_record(enum bootstage_id id, const char *name, /* Only record the first event for each */ rec = find_id(data, id); - if (!rec && data->rec_count < RECORD_COUNT) { - rec = &data->record[data->rec_count++]; - rec->time_us = mark; - rec->name = name; - rec->flags = flags; - rec->id = id; + if (!rec) { + if (data->rec_count < RECORD_COUNT) { + rec = &data->record[data->rec_count++]; + rec->time_us = mark; + rec->name = name; + rec->flags = flags; + rec->id = id; + } else { + log_warning("Bootstage space exhasuted\n"); + } } /* Tell the board about this progress */ |