]> git.dujemihanovic.xyz Git - u-boot.git/commit
console: Always define the console-recording functions
authorSimon Glass <sjg@chromium.org>
Wed, 29 Jul 2020 01:41:11 +0000 (19:41 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 8 Aug 2020 02:31:32 +0000 (22:31 -0400)
commitbd34715599c17e0d3f09af1cdfba8af120bc8602
treeb802a44b042f1b072295c1b3651fae6a175c9433
parent33d7edfd5f69b9847bd7affc5481338ec8d7ee39
console: Always define the console-recording functions

On boards without console recording these function are currently missing.
It is more convenient for them to be present but to return dummy values.
That way if we know that a test needs recording, we can check if it is
available, and skip the test if not, while avoiding #ifdefs.

Update the header file according and adjust console_record_reset_enable()
to return an error if recording is not available.

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