Skip to content

Commit

Permalink
__func__
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Jun 10, 2002
1 parent b1abbbf commit 0ce3efa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions kame/kame/racoon/algorithm.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: algorithm.c,v 1.24 2002/05/20 13:10:04 itojun Exp $ */
/* $KAME: algorithm.c,v 1.25 2002/06/10 20:01:21 itojun Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -363,7 +363,7 @@ alg_oakley_hmacdef_one(doi, key, buf)

#ifdef ENABLE_STATS
gettimeofday(&end, NULL);
syslog(LOG_NOTICE, "%s(%s size=%d): %8.6f", __FUNCTION__,
syslog(LOG_NOTICE, "%s(%s size=%d): %8.6f", __func__,
f->name, buf->l, timedelta(&start, &end));
#endif

Expand Down Expand Up @@ -462,7 +462,7 @@ alg_oakley_encdef_decrypt(doi, buf, key, iv)

#ifdef ENABLE_STATS
gettimeofday(&end, NULL);
syslog(LOG_NOTICE, "%s(%s klen=%d size=%d): %8.6f", __FUNCTION__,
syslog(LOG_NOTICE, "%s(%s klen=%d size=%d): %8.6f", __func__,
f->name, key->l << 3, buf->l, timedelta(&start, &end));
#endif
return res;
Expand Down Expand Up @@ -491,7 +491,7 @@ alg_oakley_encdef_encrypt(doi, buf, key, iv)

#ifdef ENABLE_STATS
gettimeofday(&end, NULL);
syslog(LOG_NOTICE, "%s(%s klen=%d size=%d): %8.6f", __FUNCTION__,
syslog(LOG_NOTICE, "%s(%s klen=%d size=%d): %8.6f", __func__,
f->name, key->l << 3, buf->l, timedelta(&start, &end));
#endif
return res;
Expand Down
8 changes: 4 additions & 4 deletions kame/kame/racoon/oakley.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: oakley.c,v 1.113 2002/06/04 05:20:27 itojun Exp $ */
/* $KAME: oakley.c,v 1.114 2002/06/10 20:01:21 itojun Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -202,7 +202,7 @@ oakley_dh_compute(dh, pub, priv, pub_p, gxy)

#ifdef ENABLE_STATS
gettimeofday(&end, NULL);
syslog(LOG_NOTICE, "%s(%s%d): %8.6f", __FUNCTION__,
syslog(LOG_NOTICE, "%s(%s%d): %8.6f", __func__,
s_attr_isakmp_group(dh->type), dh->prime->l << 3,
timedelta(&start, &end));
#endif
Expand Down Expand Up @@ -249,7 +249,7 @@ oakley_dh_generate(dh, pub, priv)

#ifdef ENABLE_STATS
gettimeofday(&end, NULL);
syslog(LOG_NOTICE, "%s(%s%d): %8.6f", __FUNCTION__,
syslog(LOG_NOTICE, "%s(%s%d): %8.6f", __func__,
s_attr_isakmp_group(dh->type), dh->prime->l << 3,
timedelta(&start, &end));
#endif
Expand Down Expand Up @@ -1398,7 +1398,7 @@ oakley_validate_auth(iph1)
}
#ifdef ENABLE_STATS
gettimeofday(&end, NULL);
syslog(LOG_NOTICE, "%s(%s): %8.6f", __FUNCTION__,
syslog(LOG_NOTICE, "%s(%s): %8.6f", __func__,
s_oakley_attr_method(iph1->approval->authmethod),
timedelta(&start, &end));
#endif
Expand Down

0 comments on commit 0ce3efa

Please sign in to comment.