Removed printf and puts calls that were left in accidentally.

llvm-svn: 195542
This commit is contained in:
Greg Clayton 2013-11-23 02:01:06 +00:00
parent fb90931b60
commit 5c6eab21eb
1 changed files with 0 additions and 13 deletions

View File

@ -1910,11 +1910,9 @@ Host::MakeDirectory (const char* path, uint32_t file_permissions)
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, uint32_t file_permissions)
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, uint32_t file_permissions)
break;
}
}
else
{
puts("success");
}
}
else
{