From 08e8cab57841cd1e2cc47bb9899b16a531e1a1f5 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Thu, 18 Jun 2020 15:20:37 +0200 Subject: src: Substitute `__FUNCTION__` with `__func__` The former is not standard C, and we primarily use the latter form. Change-Id: Ia7091b494ff72588fb6910710fd72165693c1ac5 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/42516 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Felix Singer Reviewed-by: Christian Walter --- src/vendorcode/cavium/bdk/libdram/dram-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vendorcode/cavium/bdk/libdram/dram-internal.h') diff --git a/src/vendorcode/cavium/bdk/libdram/dram-internal.h b/src/vendorcode/cavium/bdk/libdram/dram-internal.h index 02bf0d01f1..a54d2a4f4a 100644 --- a/src/vendorcode/cavium/bdk/libdram/dram-internal.h +++ b/src/vendorcode/cavium/bdk/libdram/dram-internal.h @@ -158,7 +158,7 @@ static inline int get_ddr_type(bdk_node_t node, const dimm_config_t *dimm_config #define DEVICE_TYPE DDR4_SPD_KEY_BYTE_DEVICE_TYPE // same for DDR3 and DDR4 spd_ddr_type = read_spd(node, dimm_config, DEVICE_TYPE); - debug_print("%s:%d spd_ddr_type=0x%02x\n", __FUNCTION__, __LINE__, spd_ddr_type); + debug_print("%s:%d spd_ddr_type=0x%02x\n", __func__, __LINE__, spd_ddr_type); /* we return only DDR4 or DDR3 */ return (spd_ddr_type == 0x0C) ? DDR4_DRAM : DDR3_DRAM; -- cgit v1.2.3