Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

warning if either "debug3", "debug4" or "info" is used as logging level.

  • Loading branch information...
commit 7a201045c8ae0ee2b78b2d95bf5e7a9a2f4d3cfc 1 parent a6fc014
sakane authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 kame/kame/racoon/cftoken.l
View
8 kame/kame/racoon/cftoken.l
@@ -1,4 +1,4 @@
-/* $KAME: cftoken.l,v 1.45 2000/12/17 21:50:10 sakane Exp $ */
+/* $KAME: cftoken.l,v 1.46 2000/12/17 21:55:07 sakane Exp $ */
%{
#include <sys/types.h>
@@ -134,12 +134,12 @@ octetstring {octet}({dot}{octet})+
/* logging */
<S_INI>log { BEGIN S_LOG; YYDB; return(LOGGING); }
-<S_LOG>info { YYD; yylval.num = 0; return(LOGLEV); }
+<S_LOG>info { YYD; yywarn("use notify, it will be obsoleted in the future."); yylval.num = 0; return(LOGLEV); }
<S_LOG>notify { YYD; yylval.num = 0; return(LOGLEV); }
<S_LOG>debug { YYD; yylval.num = 1; return(LOGLEV); }
<S_LOG>debug2 { YYD; yylval.num = 2; return(LOGLEV); }
-<S_LOG>debug3 { YYD; yylval.num = 2; return(LOGLEV); }
-<S_LOG>debug4 { YYD; yylval.num = 2; return(LOGLEV); }
+<S_LOG>debug3 { YYD; yywarn("use debug2, it will be obsoleted in the future."); yylval.num = 2; return(LOGLEV); }
+<S_LOG>debug4 { YYD; yywarn("use debug2, it will be obsoleted in the future."); yylval.num = 2; return(LOGLEV); }
<S_LOG>{semi} { BEGIN S_INI; return(EOS); }
/* padding */

0 comments on commit 7a20104

Please sign in to comment.
Something went wrong with that request. Please try again.