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:
Elyes Haouas
2024-05-27 11:20:07 +02:00
parent 93ca6b676c
commit bdd03c20d5
93 changed files with 93 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/mmio.h>
#include <stdio.h>
#include "chip.h"
#include "ec.h"

View File

@@ -5,6 +5,8 @@
#include <console/console.h>
#include <device/device.h>
#include <device/path.h>
#include <stdio.h>
#include "chip.h"
#define CROS_EC_AUDIO_CODEC_HID "GOOG0013"

View File

@@ -4,6 +4,7 @@
#include <acpi/acpigen_dptf.h>
#include <ec/google/common/dptf.h>
#include <drivers/intel/dptf/chip.h>
#include <stdio.h>
#include "chip.h"
/*

View File

@@ -2,6 +2,7 @@
#include <ec/google/chromeec/ec.h>
#include <console/console.h>
#include <stdio.h>
#include <string.h>
#include <smbios.h>

View File

@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/path.h>
#include <stdio.h>
#include <string.h>
#include "chip.h"

View File

@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <acpi/acpigen.h>
#include <stdio.h>
#include "chip.h"

View File

@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pnp.h>
#include <ec/acpi/ec.h>
#include <stdio.h>
#include <string.h>
#include <smbios.h>
#include <option.h>

View File

@@ -2,6 +2,7 @@
#include <console/console.h>
#include <acpi/acpigen.h>
#include <stdio.h>
#include <string.h>
#include "h8.h"