From 04aa59a8645510f212fc6a270b48a883f3d00fa5 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 2 Sep 2009 22:09:00 +0000 Subject: Standardize on using __func__ instead of __FUNCTION__ The __func__ variant is standardized in C99 and recommended to be used instead of __FUNCTION__ in the gcc info page. Only _very_ old versions of gcc did not know about __func__, but we've been using both __func__ and __FUNCTION__ for a long while now, and nobody complained about this, so all our users seem to use recent enough compilers. Corresponding to flashrom svn r711. Signed-off-by: Uwe Hermann Acked-by: Stefan Reinauer --- ichspi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ichspi.c') diff --git a/ichspi.c b/ichspi.c index 831dd9d7..017040cd 100644 --- a/ichspi.c +++ b/ichspi.c @@ -216,7 +216,7 @@ static int generate_opcodes(OPCODES * op) uint32_t opmenu[2]; if (op == NULL) { - printf_debug("\n%s: null OPCODES pointer!\n", __FUNCTION__); + printf_debug("\n%s: null OPCODES pointer!\n", __func__); return -1; } @@ -235,7 +235,7 @@ static int generate_opcodes(OPCODES * op) opmenu[1] = REGREAD32(ICH9_REG_OPMENU + 4); break; default: - printf_debug("%s: unsupported chipset\n", __FUNCTION__); + printf_debug("%s: unsupported chipset\n", __func__); return -1; } @@ -317,7 +317,7 @@ int program_opcodes(OPCODES * op) REGWRITE32(ICH9_REG_OPMENU + 4, opmenu[1]); break; default: - printf_debug("%s: unsupported chipset\n", __FUNCTION__); + printf_debug("%s: unsupported chipset\n", __func__); return -1; } @@ -610,7 +610,7 @@ static int run_opcode(OPCODE op, uint32_t offset, return SPI_INVALID_LENGTH; return ich9_run_opcode(op, offset, datalength, data); default: - printf_debug("%s: unsupported chipset\n", __FUNCTION__); + printf_debug("%s: unsupported chipset\n", __func__); } /* If we ever get here, something really weird happened */ -- cgit v1.2.3