[Lldb-commits] [lldb] r294213 - Try to fix build on non-Windows platforms.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 6 10:49:16 PST 2017


Author: zturner
Date: Mon Feb  6 12:49:16 2017
New Revision: 294213

URL: http://llvm.org/viewvc/llvm-project?rev=294213&view=rev
Log:
Try to fix build on non-Windows platforms.

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=294213&r1=294212&r2=294213&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Mon Feb  6 12:49:16 2017
@@ -795,14 +795,14 @@ Error Host::LaunchProcessPosixSpawn(cons
 #else
     if (::getcwd(current_dir, sizeof(current_dir)) == NULL) {
       error.SetError(errno, eErrorTypePOSIX);
-      error.LogIfError(log, "unable to save the current directory");
+      LLDB_LOG(log, "error: {0}, unable to save the current directory", error);
       return error;
     }
 
     if (::chdir(working_dir.GetCString()) == -1) {
       error.SetError(errno, eErrorTypePOSIX);
-      error.LogIfError(log, "unable to change working directory to %s",
-                       working_dir.GetCString());
+      LLDB_LOG(log, "error: {0}, unable to change working directory to {1}",
+               error, working_dir);
       return error;
     }
 #endif
@@ -876,8 +876,9 @@ Error Host::LaunchProcessPosixSpawn(cons
 #else
     if (::chdir(current_dir) == -1 && error.Success()) {
       error.SetError(errno, eErrorTypePOSIX);
-      error.LogIfError(log, "unable to change current directory back to %s",
-                       current_dir);
+      LLDB_LOG(log,
+               "error: {0}, unable to change current directory back to {1}",
+               error, current_dir);
     }
 #endif
   }




More information about the lldb-commits mailing list