From 23f272994faa85e0456fea84291fc7f9ce0d262c Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Tue, 13 Sep 2022 08:54:49 +0200 Subject: [PATCH] console/vtxprintf.c: Use | operator for bit operation instead of + Signed-off-by: Elyes Haouas Change-Id: I478265dcd070dcf3fb2cf2c535b6ca1d86b9a3f2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67564 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/console/vtxprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c index 803f691dfe..fba76bcb71 100644 --- a/src/console/vtxprintf.c +++ b/src/console/vtxprintf.c @@ -67,7 +67,7 @@ static int number(void (*tx_byte)(unsigned char byte, void *data), unsigned long precision = i; } size -= precision; - if (!(type & (ZEROPAD + LEFT))) { + if (!(type & (ZEROPAD | LEFT))) { while (size-- > 0) call_tx(' '), count++; }