aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-09-16 10:16:09 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-18 18:43:53 +0000
commite9034493cd0ee21271f26943da8e6cdad794a580 (patch)
tree5fb7d999843a39fd8c86befcf3093751ef71ac72 /src/ports
parentf7b8820dc813d1eb0b6b43fe4581dded0da38caf (diff)
remove sk_mkdir: error 17 creating dir
As far as I've ever seen, this error only comes up when two threads or processes race to create the same directory. In that case, it's not really an error... the directory is made either way. I've never seen this message not just be spam to ignore. Change-Id: I1afad5208fcb6b2ab2e94a1402ca7db0beb39817 Reviewed-on: https://skia-review.googlesource.com/47402 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/ports')
-rw-r--r--src/ports/SkOSFile_stdio.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ports/SkOSFile_stdio.cpp b/src/ports/SkOSFile_stdio.cpp
index 77f502a96e..501d275c0f 100644
--- a/src/ports/SkOSFile_stdio.cpp
+++ b/src/ports/SkOSFile_stdio.cpp
@@ -162,10 +162,5 @@ bool sk_mkdir(const char* path) {
#else
retval = mkdir(path, 0777);
#endif
- if (0 == retval) {
- return true;
- } else {
- fprintf(stderr, "sk_mkdir: error %d creating dir '%s'\n", errno, path);
- return false;
- }
+ return 0 == retval;
}