OSDN Git Service

Re-numbering log.
[ultramonkey-l7/ultramonkey-l7-v2.git] / module / protocol / protomod_ip.c
index b642a74..e897169 100644 (file)
@@ -540,7 +540,7 @@ analyze_cldata(struct l7vs_service *srv, struct l7vs_conn *conn,
         else {
             strncpy(len_str, "NULL", DEBUG_STR_LEN);
         }
-        PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,260,
+        PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,331,
             "in_function: int analyze_cldata(struct l7vs_service* srv, struct l7vs_conn* conn, "
             "char* request, size_t* len):srv=&(%s), conn=&(%s), request=\"%s\", len=&(%s)",
             srv_str, conn_str, request, len_str);
@@ -549,22 +549,22 @@ analyze_cldata(struct l7vs_service *srv, struct l7vs_conn *conn,
 
     /* check null */
     if (srv == NULL) {
-        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,221, "Arg(srv) is NULL pointer.");
+        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,324, "Arg(srv) is NULL pointer.");
         return_value = -1;
         goto analyze_cldata_out;
     }
     if (srv->pm == NULL) {
-        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,222, "Arg(srv->pm) is NULL pointer.");
+        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,325, "Arg(srv->pm) is NULL pointer.");
         return_value = -1;
         goto analyze_cldata_out;
     }
     if (request == NULL) {
-        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,223, "Arg(request) is NULL pointer.");
+        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,326, "Arg(request) is NULL pointer.");
         return_value = -1;
         goto analyze_cldata_out;
     }
     if (len == NULL) {
-        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,224, "Arg(len) is NULL pointer.");
+        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,327, "Arg(len) is NULL pointer.");
         return_value = -1;
         goto analyze_cldata_out;
     }
@@ -577,13 +577,13 @@ analyze_cldata(struct l7vs_service *srv, struct l7vs_conn *conn,
         LOG_LV_DEBUG == ip_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
         char ip_str[DEBUG_STR_LEN] = {0};
         l7vs_ip_service_c_str(ip_str, ip_service);
-        PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,261, "pointer assign: ip_service=&(%s)",
+        PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,332, "pointer assign: ip_service=&(%s)",
             ip_str);
     }
     /*------ DEBUG LOG END ------*/
 
     if (ip_service == NULL) {
-        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,227, "Could not find such service handle's ip service.");
+        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,328, "Could not find such service handle's ip service.");
         return_value = -1;
         goto analyze_cldata_out;
     }
@@ -635,7 +635,7 @@ analyze_cldata_out:
     /*-------- DEBUG LOG --------*/
     if (ip_protomod.get_log_level != NULL &&
         LOG_LV_DEBUG == ip_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
-        PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,262,
+        PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,333,
             "out_function: int analyze_cldata(struct l7vs_service* srv, struct l7vs_conn* conn, "
             "char* request, size_t* len):return_value=%d", return_value);
     }
@@ -1040,13 +1040,13 @@ parse(void *ip_arg, int argc, char *argv[])
         /* --timeout / -T */
         case 'T':
             if (sscanf(optarg, "%lu", &buffer) == 0) {
-                PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,107,
+                PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,316,
                     "-T/--timeout option value '%s' is invalid.", optarg);
                 return_value = -1;
                 goto parse_out;
             }
             if (buffer > INT_MAX) {
-                PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,108,
+                PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,317,
                     "-T/--timeout option value '%s' is too large.", optarg);
                 return_value = -1;
                 goto parse_out;
@@ -1090,7 +1090,7 @@ parse(void *ip_arg, int argc, char *argv[])
     }
     /* same option */
     if (timeout_flag > 1) {
-        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,113,
+        PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,318,
             "Cannot set multiple option '--timeout/-T'.");
         return_value = -1;
         goto parse_out;