Changeset 542

Show
Ignore:
Timestamp:
05/03/06 00:07:29 (3 years ago)
Author:
oxff
Message:

nepenthes-experimental.core: streamlined core logging, checked for format string vulnerabilities: none

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/branches/nepenthes-experimental/nepenthes-core/src/DNSManager.cpp

    r505 r542  
    7878        if (m_DNSHandler == NULL) 
    7979        { 
    80                 logCrit("%s","NO DNSHandler loaded, hit the docs\n"); 
     80                logCrit("NO DNSHandler loaded, hit the docs\n"); 
    8181                g_Nepenthes->stop(); 
    8282                return false; 
     
    105105        }else 
    106106        { 
    107                 logCrit("%s","availible DNSHandler dnsresolve-adns\n"); 
     107                logCrit("available DNSHandler dnsresolve-adns\n"); 
    108108        } 
    109109        logSpam("=--- %2s %-66s ---=\n","", "DNSHandler registerd"); 
  • nepenthes/branches/nepenthes-experimental/nepenthes-core/src/DialogueFactoryManager.cpp

    r505 r542  
    7070        list <DialogueFactory *>::iterator diaf; 
    7171        int32_t i =0; 
    72         logSpam("%s","=--- DialogueFactoryManager --=\n"); 
     72        logSpam("=--- DialogueFactoryManager --=\n"); 
    7373        for (diaf = m_Factories.begin();diaf != m_Factories.end();diaf++, i++) 
    7474        { 
  • nepenthes/branches/nepenthes-experimental/nepenthes-core/src/Nepenthes.cpp

    r535 r542  
    464464                                } catch ( ... ) 
    465465                                { 
    466                                         logCrit("%s","Could not find nepenthes.logmanager.ring_logging_file in Config\n"); 
     466                                        logCrit("Could not find nepenthes.logmanager.ring_logging_file in Config\n"); 
    467467                                        run = false; 
    468468                                } 
     
    487487                                } catch ( ... ) 
    488488                                { 
    489                                         logCrit("%s","Could not find nepenthes.logmanager.file_logging_file in Config\n"); 
     489                                        logCrit("Could not find nepenthes.logmanager.file_logging_file in Config\n"); 
    490490                                        run = false; 
    491491                                } 
     
    688688                        if ( forcesetcaps == true ) 
    689689                        { 
    690                                 logCrit("%s","As you asked to force capabilities, this is a critical error and we will terminate right now\n"); 
     690                                logCrit("As you asked to force capabilities, this is a critical error and we will terminate right now\n"); 
    691691                                run = false; 
    692692                        } 
     
    13641364                cap_free(caps); 
    13651365                logCrit("Could not set capabilities '%s'\n",strerror(errno)); 
    1366                 logCrit("%s","Maybe you did not load the kernel module 'capability' ?\n"); 
    1367                 logCrit("%s","Try 'modprobe capability' \n"); 
     1366                logCrit("Maybe you did not load the kernel module 'capability' ?\n"); 
     1367                logCrit("Try 'modprobe capability' \n"); 
    13681368                return false; 
    13691369        } 
     
    13791379        return true; 
    13801380#else 
    1381         logCrit("%s","Compiled without support for capabilities, no way to run capabilities\n"); 
     1381        logCrit("Compiled without support for capabilities, no way to run capabilities\n"); 
    13821382        return false; 
    13831383#endif  // HAVE_LIBCAP 
  • nepenthes/branches/nepenthes-experimental/nepenthes-core/src/SocketManager.cpp

    r500 r542  
    149149                } 
    150150        } catch ( ... ) { 
    151                 logCrit("%s","Could not find nepenthes.socketmanager.bind_address in config file, assuming no\n"); 
     151                logCrit("Could not find nepenthes.socketmanager.bind_address in config file, assuming no\n"); 
    152152        } 
    153153 
     
    350350                                                        if ( socket == NULL ) 
    351351                                                        { 
    352                                                                 logCrit("%s","Accept returned NULL ptr \n"); 
     352                                                                logCrit("Accept returned NULL ptr \n"); 
    353353                                                        } else 
    354354                                                        { 
  • nepenthes/branches/nepenthes-experimental/nepenthes-core/src/SubmitManager.cpp

    r505 r542  
    103103 
    104104    } catch ( ... ) { 
    105         logCrit("%s","Could not find value in config file\n"); 
     105        logCrit("Could not find value in config file\n"); 
    106106        return false; 
    107107    } 
  • nepenthes/branches/nepenthes-experimental/nepenthes-core/src/TCPSocket.cpp

    r370 r542  
    753753        if (m_CanSend == false) 
    754754        { 
    755                 logCrit("%s","Some read only attached Module wants to write on a Socket\n"); 
     755                logCrit("Some read only attached Module wants to write on a Socket\n"); 
    756756                return -1; 
    757757        } 
  • nepenthes/branches/nepenthes-experimental/nepenthes-core/src/UDPSocket.cpp

    r370 r542  
    381381        if (m_CanSend == false) 
    382382        { 
    383                 logCrit("%s","Some read only attached Module wants to write on a Socket\n"); 
     383                logCrit("Some read only attached Module wants to write on a Socket\n"); 
    384384                return -1; 
    385385        } 
     
    394394        if (m_CanSend == false) 
    395395        { 
    396                 logCrit("%s","Some read only attached Module wants to write on a Socket\n"); 
     396                logCrit("Some read only attached Module wants to write on a Socket\n"); 
    397397                return -1; 
    398398        }