]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing Snort2Lua error warnings/errors
authorJosh <jrosenba@cisco.com>
Sat, 15 Nov 2014 00:07:36 +0000 (18:07 -0600)
committerJosh <jrosenba@cisco.com>
Sat, 15 Nov 2014 00:07:36 +0000 (18:07 -0600)
tools/snort2lua/helpers/parse_cmd_line.cc

index 72d522b2669c37379f58cabdde1c518056d5f823..c2ed497233af746b731b7cfe023f4f6c5314c37a 100644 (file)
@@ -196,7 +196,7 @@ static void parse_config_file(const char* key, const char* val)
 {
     if (!conf_file.empty())
     {
-        std::cout << "ERROR: %s %s\n\tOnly one config file allowed!\n", key, val;
+        std::cout << "ERROR: " << key << " " << val << "\n\tOnly one config file allowed!\n";
         exit(-1);
     }
     else
@@ -227,7 +227,7 @@ static void parse_error_file(const char* key, const char* val)
 {
     if (found_error_file)
     {
-        std::cout << "ERROR: %s %s\n\tOnly one error file allowed!\n", key, val;
+        std::cout << "ERROR: " << key << " " << val << "\n\tOnly one error file allowed!\n";
         exit(-1);
     }
     else
@@ -242,7 +242,7 @@ static void parse_output_file(const char* key, const char* val)
 {
     if (found_out_file)
     {
-        std::cout << "ERROR: %s %s\n\tOnly one output file allowed!\n", key, val;
+        std::cout << "ERROR: " << key << " " << val << "\n\tOnly one output file allowed!\n";
         exit(-1);
     }
     else
@@ -256,7 +256,7 @@ static void parse_rule_file(const char* key, const char* val)
 {
     if (found_rule_file)
     {
-        std::cout << "ERROR: %s %s\n\tOnly one output file allowed!\n", key, val;
+        std::cout << "ERROR: " << key << " " << val << "\n\tOnly one output file allowed!\n";
         exit(-1);
     }
     else