summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-09-13 08:54:49 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-09-14 14:06:34 +0000
commit23f272994faa85e0456fea84291fc7f9ce0d262c (patch)
tree0a31476d367194db7c6824aedeb8d1ef38e26e10
parent0f1fb8a8685148e2bad299285a62e98a59c9f9b4 (diff)
console/vtxprintf.c: Use | operator for bit operation instead of +
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I478265dcd070dcf3fb2cf2c535b6ca1d86b9a3f2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67564 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r--src/console/vtxprintf.c2
1 files changed, 1 insertions, 1 deletions
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++;
}