From ce1b8180fdba894b61dd222b067ecdb5147b09ba Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Sun, 29 Dec 2024 09:05:58 +0100 Subject: [PATCH] device: Fix debug print Increase the char buffer size to fit all characters that are printed into it by the snprintf() call below. Change-Id: Ib153e1d02a08b2551dad5b51c4c88bf0bb606af3 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/85807 Tested-by: build bot (Jenkins) Reviewed-by: Nicholas Chin --- src/device/device_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/device_util.c b/src/device/device_util.c index 8d111b6096..fc585a0414 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -547,7 +547,7 @@ const char *resource_type(const struct resource *resource) void report_resource_stored(struct device *dev, const struct resource *resource, const char *comment) { - char buf[10]; + char buf[16]; unsigned long long base, end; if (!(resource->flags & IORESOURCE_STORED))