]> sourceware.org Git - systemtap.git/commitdiff
PR14927: stapdyn: make warning/error string capitalization consistent
authorJonathan Lebon <jlebon@redhat.com>
Tue, 9 Jul 2013 13:49:58 +0000 (09:49 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Tue, 9 Jul 2013 18:02:08 +0000 (14:02 -0400)
Just like in stap and staprun, where messages that follow the "WARNING:"
and "ERROR:" string are capitalized.

stapdyn/mutatee.cxx
stapdyn/mutator.cxx
stapdyn/stapdyn.cxx

index 1607c1d0f6954570cb9120e25cd298aaa4107d72..9b63f56486d2a45ba5272352079d5a9756a1053b 100644 (file)
@@ -315,7 +315,7 @@ mutatee::instrument_dynprobe_target(BPatch_object* object,
       Dyninst::Address address = object->fileOffsetToAddr(probe.offset);
       if (address == BPatch_object::E_OUT_OF_BOUNDS)
         {
-          stapwarn() << "couldn't convert " << target.path << "+"
+          stapwarn() << "Couldn't convert " << target.path << "+"
                      << lex_cast_hex(probe.offset) << " to an address" << endl;
           continue;
         }
@@ -327,7 +327,7 @@ mutatee::instrument_dynprobe_target(BPatch_object* object,
       object->findPoints(address, points);
       if (points.empty())
         {
-          stapwarn() << "couldn't find an instrumentation point at "
+          stapwarn() << "Couldn't find an instrumentation point at "
                      << lex_cast_hex(address) << ", " << target.path
                      << "+" << lex_cast_hex(probe.offset) << endl;
           continue;
@@ -345,7 +345,7 @@ mutatee::instrument_dynprobe_target(BPatch_object* object,
                 points[i]->getFunction()->findPoint(BPatch_locExit);
               if (!exits || exits->empty())
                 {
-                  stapwarn() << "couldn't find a return point from "
+                  stapwarn() << "Couldn't find a return point from "
                              << lex_cast_hex(address) << ", " << target.path
                              << "+" << lex_cast_hex(probe.offset) << endl;
                   continue;
@@ -379,7 +379,7 @@ mutatee::instrument_dynprobe_target(BPatch_object* object,
         {
           Dyninst::Address sem_address = object->fileOffsetToAddr(probe.semaphore);
           if (sem_address == BPatch_object::E_OUT_OF_BOUNDS)
-            stapwarn() << "couldn't convert semaphore " << target.path << "+"
+            stapwarn() << "Couldn't convert semaphore " << target.path << "+"
                        << lex_cast_hex(probe.offset) << " to an address" << endl;
           else
             {
index 5fa0c5890dbdac5f12069966dca5afe621becb82..b483da68f57a87ddcbc1afc8f34becb303e9374c 100644 (file)
@@ -313,7 +313,7 @@ mutator::init_modoptions()
   if (global_setter == NULL)
     {
       // Hypothetical backwards compatibility with older stapdyn:
-      stapwarn() << "compiled module does not support -G globals" << endl;
+      stapwarn() << "Compiled module does not support -G globals" << endl;
       return false;
     }
 
@@ -327,7 +327,7 @@ mutator::init_modoptions()
       string::size_type separator = modoption.find('=');
       if (separator == string::npos)
         {
-          stapwarn() << "could not parse module option '" << modoption << "'" << endl;
+          stapwarn() << "Could not parse module option '" << modoption << "'" << endl;
           return false; // XXX: perhaps ignore the option instead?
         }
       string name = modoption.substr(0, separator);
@@ -336,7 +336,7 @@ mutator::init_modoptions()
       int rc = global_setter(name.c_str(), value.c_str());
       if (rc != 0)
         {
-          stapwarn() << "incorrect module option '" << modoption << "'" << endl;
+          stapwarn() << "Incorrect module option '" << modoption << "'" << endl;
           return false; // XXX: perhaps ignore the option instead?
         }
     }
@@ -362,22 +362,22 @@ mutator::init_session_attributes()
 
   int rc = global_setter("@log_level", lex_cast(stapdyn_log_level).c_str());
   if (rc != 0)
-    stapwarn() << "couldn't set 'log_level' global" << endl;
+    stapwarn() << "Couldn't set 'log_level' global" << endl;
 
   rc = global_setter("@suppress_warnings",
                     lex_cast(stapdyn_suppress_warnings).c_str());
   if (rc != 0)
-    stapwarn() << "couldn't set 'suppress_warnings' global" << endl;
+    stapwarn() << "Couldn't set 'suppress_warnings' global" << endl;
 
   rc = global_setter("@stp_pid", lex_cast(getpid()).c_str());
   if (rc != 0)
-    stapwarn() << "couldn't set 'stp_pid' global" << endl;
+    stapwarn() << "Couldn't set 'stp_pid' global" << endl;
 
   if (target_mutatee)
     {
       rc = global_setter("@target", lex_cast(target_mutatee->process_id()).c_str());
       if (rc != 0)
-        stapwarn() << "couldn't set 'target' global" << endl;
+        stapwarn() << "Couldn't set 'target' global" << endl;
     }
 
   size_t module_endpath = module_name.rfind('/');
@@ -388,7 +388,7 @@ mutator::init_session_attributes()
   string module_basename(module_name, module_basename_start, module_basename_len);
   rc = global_setter("@module_name", module_basename.c_str());
   if (rc != 0)
-    stapwarn() << "couldn't set 'module_name' global" << endl;
+    stapwarn() << "Couldn't set 'module_name' global" << endl;
 
   time_t now_t = time(NULL);
   struct tm* now = localtime(&now_t);
@@ -396,20 +396,20 @@ mutator::init_session_attributes()
     {
       rc = global_setter("@tz_gmtoff", lex_cast(-now->tm_gmtoff).c_str());
       if (rc != 0)
-        stapwarn() << "couldn't set 'tz_gmtoff' global" << endl;
+        stapwarn() << "Couldn't set 'tz_gmtoff' global" << endl;
       rc = global_setter("@tz_name", now->tm_zone);
       if (rc != 0)
-        stapwarn() << "couldn't set 'tz_name' global" << endl;
+        stapwarn() << "Couldn't set 'tz_name' global" << endl;
     }
   else
-    stapwarn() << "couldn't discover local timezone info" << endl;
+    stapwarn() << "Couldn't discover local timezone info" << endl;
 
   if (stapdyn_outfile_name)
     {
       rc = global_setter("@outfile_name",
                         lex_cast(stapdyn_outfile_name).c_str());
       if (rc != 0)
-       stapwarn() << "couldn't set 'outfile_name' global" << endl;
+       stapwarn() << "Couldn't set 'outfile_name' global" << endl;
     }
 
   return;
index 05a28a2642fd03a1165c9755668ed765f86ac052..a4f07dc3d71b2c813d7dd6f52c80ed0f9e0db16a 100644 (file)
@@ -144,7 +144,7 @@ main(int argc, char * const argv[])
   auto_ptr<mutator> session(new mutator(module, modoptions));
   if (!session.get() || !session->load())
     {
-      staperror() << "failed to create the mutator!" << endl;
+      staperror() << "Failed to create the mutator!" << endl;
       return 1;
     }
 
This page took 0.0314140000000001 seconds and 5 git commands to generate.