]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
deleted debug code
authorRuss Combs <rucombs@cisco.com>
Mon, 25 Aug 2014 00:55:47 +0000 (20:55 -0400)
committerRuss Combs <rucombs@cisco.com>
Mon, 25 Aug 2014 00:55:47 +0000 (20:55 -0400)
doc/style.txt
src/main/snort.cc
src/managers/inspector_manager.cc

index 61e89f123ac7959b5a0935ec90c3d46cda403d79..1d0ff80ce4cf7e51a1ea8ea947f7ec6c1399734a 100644 (file)
@@ -35,7 +35,13 @@ yet firm so feedback is welcome to get something we can live with.
   med, or low priority.  For now, H, M, or L can indicate alpha 1, 2, or 3.
   Perf changes fall between alpha 1 and 2.
 
-==== Types
+=== Logging
+
+* Don't output messages for the coder.  Output messages that make
+  sense to the user.  The function name doesn't belong in the error
+  message.
+
+=== Types
 
 * Use logical types to make the code clearer and to help the compiler catch
   problems.  typedef uint16_t Port; bool foo(Port) is way better than
@@ -48,7 +54,7 @@ yet firm so feedback is welcome to get something we can live with.
 
 * Use const liberally.
 
-==== Formatting
+=== Formatting
 
 * Indent 4 space chars ... no tabs!
 
index 66f2318e4e2aa4a4882eb2ac9eed10d330fef557..66d6eeb6d69676e4a8c4556a6f6809f666001890 100644 (file)
@@ -960,12 +960,8 @@ void snort_rotate()
         SetRotatePerfFileFlag();
 }
 
-int wtf_start[8];
-int wtf_stop[8];
-
 void snort_thread_init(const char* intf)
 {
-++wtf_start[get_instance_id()];
     // FIXIT-H the start-up sequence is a little off due to dropping privs
     DAQ_New(snort_conf, intf);
     DAQ_Start();
@@ -990,12 +986,10 @@ void snort_thread_init(const char* intf)
     IpsManager::setup_options();
     ActionManager::thread_init(snort_conf);
     InspectorManager::thread_init(snort_conf);
-++wtf_start[get_instance_id()];
 }
 
 void snort_thread_term()
 {
-++wtf_stop[get_instance_id()];
 #ifdef PPM_MGR
     ppm_sum_stats();
 #endif
@@ -1025,6 +1019,5 @@ void snort_thread_term()
     SnortEventqFree();
     Active_Term();
     PacketManager::thread_term();
-++wtf_stop[get_instance_id()];
 }
 
index 466b1db1793523c52aa4f2f22eca8ae52648e427..e9f82bcd306bed08b5ecc970bfc16aeda301ce9b 100644 (file)
@@ -377,9 +377,6 @@ void InspectorManager::thread_init(SnortConfig* sc)
 {
     Inspector::slot = get_instance_id();
 
-    if ( wtf_init[get_instance_id()]++ )
-        return;
-
     InspectionPolicy* pi = get_inspection_policy();
 
     if ( !pi || !pi->framework_policy )