coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vsprintf.c File Reference
#include <console/vtxprintf.h>
#include <string.h>
Include dependency graph for vsprintf.c:

Go to the source code of this file.

Data Structures

struct  vsnprintf_context
 

Functions

static void str_tx_byte (unsigned char byte, void *data)
 
int vsnprintf (char *buf, size_t size, const char *fmt, va_list args)
 
int snprintf (char *buf, size_t size, const char *fmt,...)
 Note: This file is only for POSIX compatibility, and is meant to be chain-included via string.h. More...
 

Function Documentation

◆ snprintf()

int snprintf ( char *  buf,
size_t  size,
const char *  fmt,
  ... 
)

Note: This file is only for POSIX compatibility, and is meant to be chain-included via string.h.

Definition at line 35 of file vsprintf.c.

References args, buf, va_end, va_start, and vsnprintf().

Referenced by acpi_create_serialio_ssdt_entry(), acpi_device_add_power_res(), acpi_device_path_fill(), acpi_device_path_join(), acpigen_write_coreboot_hid(), acpigen_write_CPPC_hybrid_method(), acpigen_write_CPPC_method(), acpigen_write_processor(), acpigen_write_processor_cnot(), acpigen_write_processor_package(), acpigen_write_typec_connector(), add_fw_config_oem_string(), add_guarded_method_namestring(), bus_path(), camera_acpi_name(), camera_fill_cio2(), cbfs_boot_map_optionrom(), cbfs_boot_map_optionrom_revision(), conn_acpi_name(), crosec_audio_codec_acpi_name(), crosec_i2c_tunnel_acpi_name(), cs35l53_acpi_name(), dev_path(), drivers_intel_gma_displays_ssdt_generate(), dt_fix_symbols(), dt_platform_fixup(), fit_add_default_compat_strings(), fsp_get_version(), get_panel_from_cbfs(), get_sdram_config(), google_chromeec_smbios_system_sku(), gpio_keys_acpi_name(), h8_build_id_and_function_spec_version(), h8_dsdt_scope(), i2c_gpiomux_bus_acpi_name(), i2c_gpiomux_mux_acpi_name(), i2c_sx9310_acpi_name(), i2c_sx9324_acpi_name(), i2c_sx9360_acpi_name(), i2s_machine_dev_acpi_name(), intel_acpi_gen_def_acpi_pirq(), ldn_gen_resources_use(), lpi_get_constraints(), mainboard_fill_ec_version(), mainboard_init(), max98390_acpi_name(), max98390_fill_ssdt(), pcie_gpp_acpi_name(), ppin_string_fixup(), report_resource_stored(), resource_type(), rt1011_acpi_name(), scope_of(), set_resource(), smbios_cache_associativity(), smbios_fill_dimm_asset_tag(), smbios_fill_dimm_locator(), smbios_fill_dimm_manufacturer_from_id(), smbios_fill_dimm_part_number(), smbios_fill_dimm_serial_number(), smbios_mainboard_location_in_chassis(), smbios_mainboard_serial_number(), smbios_mainboard_version(), smbios_system_sku(), smbios_write_type4(), soundwire_alc1308_acpi_name(), soundwire_alc5682_acpi_name(), soundwire_alc711_acpi_name(), soundwire_max98373_acpi_name(), spi_acpi_name(), superio_common_ldn_acpi_name(), thermal_zone_acpi_name(), tspi_cbfs_measurement(), uncore_inject_dsdt(), usb4_retimer_cb_get_power_state(), usb4_retimer_cb_set_power_state(), usb4_retimer_path_arg(), wifi_pcie_acpi_name(), write_active_cooling_methods(), write_disable_method(), write_dppm_methods(), write_dptf_OSC(), write_enable_method(), write_generic_devices(), write_guard_variable(), write_oem_word(), xhci_acpi_name(), xhci_enable(), and xhci_generate_port_acpi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ str_tx_byte()

static void str_tx_byte ( unsigned char  byte,
void data 
)
static

Definition at line 11 of file vsprintf.c.

References vsnprintf_context::buf_limit, and vsnprintf_context::str_buf.

Referenced by vsnprintf().

Here is the caller graph for this function:

◆ vsnprintf()

int vsnprintf ( char *  buf,
size_t  size,
const char *  fmt,
va_list  args 
)

Definition at line 21 of file vsprintf.c.

References args, buf, vsnprintf_context::buf_limit, vsnprintf_context::str_buf, str_tx_byte(), and vtxprintf().

Referenced by snprintf(), and vprintk().

Here is the call graph for this function:
Here is the caller graph for this function: