tree: Use <stdio.h> for snprintf
<stdio.h> header is used for input/output operations (such as printf, scanf, fopen, etc.). Although some input/output functions can manipulate strings, they do not need to directly include <string.h> because they are declared independently. Change-Id: Ibe2a4ff6f68843a6d99cfdfe182cf2dd922802aa Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82665 Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <arch/smc.h>
|
||||
#include <console/console.h>
|
||||
#include <smbios.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
static void smbios_processor_id(u32 *processor_id)
|
||||
|
@@ -5,6 +5,7 @@
|
||||
#include <console/console.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/x86/name.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static int smbios_cpu_vendor(u8 *start)
|
||||
{
|
||||
|
Reference in New Issue
Block a user