]> git.baikalelectronics.ru Git - uboot.git/commit
log: Set up a flag byte for log records
authorSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2021 03:10:52 +0000 (20:10 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 22:41:35 +0000 (17:41 -0500)
commitf0cab4a7b2fc5f6c30ea936728d178ac19e3e4b4
tree0d2e23263b1656013685cfea2943798ba43389a5
parent8c9473a4331172ce7a294581f85e989667bca9fd
log: Set up a flag byte for log records

At present only a single flag (force_debug) is used in log records. Before
adding more, convert this into a bitfield, so more can be added without
using more space.

To avoid expanding the log_record struct itself (which some drivers may
wish to store in memory) reduce the line-number field to 16 bits. This
provides for up to 64K lines which should be enough for anyone.

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