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:
@@ -8,6 +8,7 @@
|
||||
#include <endian.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -12,6 +12,7 @@
|
||||
#include <memrange.h>
|
||||
#include <fit.h>
|
||||
#include <boardid.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <types.h>
|
||||
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#include <device/pci_ids.h>
|
||||
#include <device/pci.h>
|
||||
#include <drivers/vpd/vpd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static u8 smbios_checksum(u8 *p, u32 length)
|
||||
|
@@ -3,6 +3,7 @@
|
||||
#include <memory_info.h>
|
||||
#include <smbios.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
/* this function will fill the corresponding locator */
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include <console/console.h>
|
||||
#include <security/vboot/misc.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ux_locales.h>
|
||||
#include <vb2_api.h>
|
||||
|
Reference in New Issue
Block a user