console: Pass log_state to vtxprintf()
commitb6cf642732f59e732c21dffb98bdd91a33324022
authorJulius Werner <jwerner@chromium.org>
Thu, 3 Feb 2022 01:21:02 +0000 (2 17:21 -0800)
committerFelix Held <felix-coreboot@felixheld.de>
Fri, 4 Feb 2022 16:33:36 +0000 (4 16:33 +0000)
tree0f3b16762df24c56664b9dc595b87d9f2adf7a41
parent8e4742d76de730a29fb9c5d150fb1c9a03c52423
console: Pass log_state to vtxprintf()

This patch makes a slight change in the way CONSOLE_LOG_FAST and
CONSOLE_LOG_ALL are differentiated, by no longer passing a different
tx_byte() function pointer and instead using the `data` argument to
vtxprintf() to encode the difference. It also passes the message log
level through to the tx_byte() function this way, which will be needed
in the next patch.

Change-Id: I0bba134cd3e70c2032689abac83ff53d7cdf2d7f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61580
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
src/console/printk.c