coreboot/src/console
Martin Roth 30d88884c5 UPSTREAM: console/vtxprintf.c: cast precision to size_t for string length
If no maximum string length is specified, we're intentionally passing a
value of -1 to get the string length so that it's not limited.  This
makes checking tools unhappy, so actively cast it to size_t before
passing it into strlen to show that it's not an accident.

Addresses coverity issue 1129133 - Argument cannot be negative

BUG=None
BRANCH=None
TEST=None

Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/17479
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>

Change-Id: I40f8f2101e170a5c96fcd39c217aa414f4316473
Reviewed-on: https://chromium-review.googlesource.com/415044
Commit-Ready: Aaron Durbin <adurbin@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-11-29 17:38:21 -08:00
..
console.c UPSTREAM: console: Add write line routine 2016-08-14 19:50:25 -07:00
die.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
early_print.c UPSTREAM: src/console: Add required space before opening parenthesis '(' 2016-09-04 19:36:47 -07:00
init.c UPSTREAM: arch/x86: Enable postcar console 2016-08-04 23:38:34 -07:00
Kconfig UPSTREAM: Revert "[WIP] console/Kconfig: Calculate COM port base addresses only on x86" 2016-10-18 22:15:27 -07:00
Makefile.inc UPSTREAM: console: honor CONFIG_POSTCAR_CONSOLE 2016-09-21 19:36:51 -07:00
post.c UPSTREAM: console/post: be explicit about conditional cmos_post_log() compiling 2016-05-26 03:21:57 -07:00
printk.c console/: add missing license headers 2016-01-18 03:44:01 +01:00
vsprintf.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vtxprintf.c UPSTREAM: console/vtxprintf.c: cast precision to size_t for string length 2016-11-29 17:38:21 -08:00