--- clitest.c 2012-11-12 21:34:18.000000000 +0100 +++ my.c 2016-06-03 16:03:47.629919148 +0200 @@ -72,7 +72,7 @@ int cmd_test(struct cli_def *cli, const char *command, char *argv[], int argc) { int i; - cli_print(cli, "called %s with \"%s\"", __FUNCTION__, command); + cli_print(cli, "called %s with \"%s\"", __func__, command); cli_print(cli, "%d arguments:", argc); for (i = 0; i < argc; i++) cli_print(cli, " %s", argv[i]);