Permalink
Browse files

use strings instead of numerics for plog() calls. Michal Ludvig

  • Loading branch information...
1 parent 1c0ddb3 commit 058281c2569f518f68091b76b146414d516318cb itojun committed Aug 19, 2003
Showing with 10 additions and 7 deletions.
  1. +10 −7 kame/kame/racoon/proposal.c
View
17 kame/kame/racoon/proposal.c
@@ -1,4 +1,4 @@
-/* $KAME: proposal.c,v 1.48 2002/05/07 09:32:50 sakane Exp $ */
+/* $KAME: proposal.c,v 1.49 2003/08/19 09:12:38 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -341,8 +341,9 @@ cmpsaprop_alloc(ph1, pp1, pp2, side)
if (pr1->proto_id != pr2->proto_id) {
plog(LLV_ERROR, LOCATION, NULL,
"proto_id mismatched: "
- "my:%d peer:%d\n",
- pr2->proto_id, pr1->proto_id);
+ "my:%s peer:%s\n",
+ s_ipsecdoi_proto(pr2->proto_id),
+ s_ipsecdoi_proto(pr1->proto_id));
goto err;
}
spisizematch = 0;
@@ -376,8 +377,9 @@ cmpsaprop_alloc(ph1, pp1, pp2, side)
if (pr1->encmode != pr2->encmode) {
plog(LLV_ERROR, LOCATION, NULL,
"encmode mismatched: "
- "my:%d peer:%d\n",
- pr2->encmode, pr1->encmode);
+ "my:%s peer:%s\n",
+ s_ipsecdoi_encmode(pr2->encmode),
+ s_ipsecdoi_encmode(pr1->encmode));
goto err;
}
@@ -495,8 +497,9 @@ cmpsatrns(tr1, tr2)
if (tr1->authtype != tr2->authtype) {
plog(LLV_ERROR, LOCATION, NULL,
"authtype mismatched: "
- "my:%d peer:%d\n",
- tr2->authtype, tr1->authtype);
+ "my:%s peer:%s\n",
+ s_ipsecdoi_attr_v(IPSECDOI_ATTR_AUTH, tr2->authtype),
+ s_ipsecdoi_attr_v(IPSECDOI_ATTR_AUTH, tr1->authtype));
return 1;
}

0 comments on commit 058281c

Please sign in to comment.