From feba51ba17b24e32fd9442310c05aaec2aa0de5f Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Mon, 15 May 2023 18:33:50 +0200 Subject: soc/intel/xeon_sp/spr: Fix format specifier for __LINE__ (%d) Change-Id: I1384a02fa2931002ddd629acef0a4368435cfeb5 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/75233 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Arthur Heymans --- src/soc/intel/xeon_sp/spr/numa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/soc/intel/xeon_sp/spr/numa.c b/src/soc/intel/xeon_sp/spr/numa.c index 6aba7ccad5..92ed0bf82c 100644 --- a/src/soc/intel/xeon_sp/spr/numa.c +++ b/src/soc/intel/xeon_sp/spr/numa.c @@ -44,7 +44,7 @@ enum cb_err fill_pds(void) pds.num_pds = num_cxlnodes + num_sockets; pds.pds = xmalloc(sizeof(struct proximity_domain) * pds.num_pds); if (!pds.pds) - die("%s %s out of memory.", __FILE__, __LINE__); + die("%s %d out of memory.", __FILE__, __LINE__); memset(pds.pds, 0, sizeof(struct proximity_domain) * pds.num_pds); @@ -56,7 +56,7 @@ enum cb_err fill_pds(void) pds.pds[i].socket_bitmap = 1 << i; pds.pds[i].distances = malloc(sizeof(uint8_t) * pds.num_pds); if (!pds.pds[i].distances) - die("%s %s out of memory.", __FILE__, __LINE__); + die("%s %d out of memory.", __FILE__, __LINE__); /* hard code the distances for now, till we know how to calculate them. */ for (j = 0; j < pds.num_pds; j++) { if (j == i) @@ -84,7 +84,7 @@ enum cb_err fill_pds(void) pds.pds[i].device_handle = PCI_BDF(dev); pds.pds[i].distances = malloc(sizeof(uint8_t) * pds.num_pds); if (!pds.pds[i].distances) - die("%s %s out of memory.", __FILE__, __LINE__); + die("%s %d out of memory.", __FILE__, __LINE__); /* hard code the distances until we know how to calculate them */ for (j = 0; j < pds.num_pds; j++) { if (j == i) -- cgit v1.2.1