From 1de0d804da2faf3f3db8c6d70c84b658d006b6fc Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Mon, 8 Oct 2012 22:16:43 +0000 Subject: [PATCH] Removed __func__ usage which is c99. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1395792 13f79535-47bb-0310-9956-ffa450edef68 --- support/passwd_common.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/support/passwd_common.c b/support/passwd_common.c index d1b10d194b..ab720279c2 100644 --- a/support/passwd_common.c +++ b/support/passwd_common.c @@ -58,7 +58,7 @@ static int generate_salt(char *s, size_t size, const char **errstr, n = (size * 6 + 7)/8; if (n > sizeof(rnd)) { - apr_file_printf(errfile, "%s: BUG: Buffer too small", __func__); + apr_file_printf(errfile, "generate_salt(): BUG: Buffer too small"); abort(); } rv = apr_generate_random_bytes(rnd, n); @@ -242,7 +242,7 @@ int mkhash(struct passwd_ctx *ctx) #endif /* BCRYPT_ALGO_SUPPORTED */ default: - apr_file_printf(errfile, "%s: BUG: invalid algorithm %d", __func__, + apr_file_printf(errfile, "mkhash(): BUG: invalid algorithm %d", ctx->alg); abort(); } @@ -307,7 +307,9 @@ int parse_common_options(struct passwd_ctx *ctx, char opt, break; } default: - apr_file_printf(errfile, "%s: BUG: invalid option %c", __func__, opt); + apr_file_printf(errfile, + "parse_common_options(): BUG: invalid option %c", + opt); abort(); } return 0; -- 2.50.1