[Lldb-commits] [lldb] r195542 - Removed printf and puts calls that were left in accidentally.

Greg Clayton gclayton at apple.com
Fri Nov 22 18:01:06 PST 2013


Author: gclayton
Date: Fri Nov 22 20:01:06 2013
New Revision: 195542

URL: http://llvm.org/viewvc/llvm-project?rev=195542&view=rev
Log:
Removed printf and puts calls that were left in accidentally.


Modified:
    lldb/trunk/source/Host/common/Host.cpp

Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=195542&r1=195541&r2=195542&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Fri Nov 22 20:01:06 2013
@@ -1910,11 +1910,9 @@ Host::MakeDirectory (const char* path, u
     Error error;
     if (path && path[0])
     {
-        printf("mkdir('%s', %o) ", path, file_permissions);
         if (::mkdir(path, file_permissions) != 0)
         {
             error.SetErrorToErrno();
-            printf(" %i (%s)\n", error.GetError(), error.AsCString());
             switch (error.GetError())
             {
             case ENOENT:
@@ -1928,17 +1926,10 @@ Host::MakeDirectory (const char* path, u
                         if (error2.Success())
                         {
                             // Try and make the directory again now that the parent directory was made successfully
-                            printf("mkdir('%s', %o) ", path, file_permissions);
                             if (::mkdir(path, file_permissions) == 0)
-                            {
-                                puts("success");
                                 error.Clear();
-                            }
                             else
-                            {
                                 error.SetErrorToErrno();
-                                printf(" %i (%s)\n", error.GetError(), error.AsCString());
-                            }
                         }
                     }
                 }
@@ -1952,10 +1943,6 @@ Host::MakeDirectory (const char* path, u
                 break;
             }
         }
-        else
-        {
-            puts("success");
-        }
     }
     else
     {





More information about the lldb-commits mailing list