diff options
| author | Brandon McAnsh <brandon.mcansh@gmail.com> | 2016-08-24 20:50:01 -0400 |
|---|---|---|
| committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2016-09-24 21:53:28 +0200 |
| commit | 914ab1e6419a0e2cc2e0a8cb08b0ee1b88d10c3c (patch) | |
| tree | 70def99393a7b937062d73febd7afd79867aed12 | |
| parent | a807d0538ba7db626e542cd1c4b17150af05667a (diff) | |
| download | android_build_kati-cm-14.0.tar.gz android_build_kati-cm-14.0.tar.bz2 android_build_kati-cm-14.0.zip | |
kati: Silence FindEmulatorcm-14.0
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
| -rw-r--r-- | find.cc | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -227,9 +227,6 @@ class DirentDirNode : public DirentNode { string* out) const override { ScopedReadDirTracker srdt(this, *path, cur_read_dirs); if (!srdt.ok()) { - fprintf(stderr, "FindEmulator: find: File system loop detected; `%s' is " - "part of the same file system loop as `%s'.\n", - path->c_str(), srdt.conflicted().c_str()); return true; } @@ -322,10 +319,6 @@ class DirentSymlinkNode : public DirentNode { unsigned char type = DT_LNK; if (fc.follows_symlinks && errno_ != ENOENT) { if (errno_) { - if (fc.type != FindCommandType::FINDLEAVES) { - fprintf(stderr, "FindEmulator: find: `%s': %s\n", - path->c_str(), strerror(errno_)); - } return true; } @@ -776,14 +769,7 @@ class FindEmulatorImpl : public FindEmulator { } bool should_fallback = false; if (!FindDir(fc.chdir, &should_fallback)) { - if (should_fallback) - return false; - if (!fc.redirect_to_devnull) { - fprintf(stderr, - "FindEmulator: cd: %.*s: No such file or directory\n", - SPF(fc.chdir)); - } - return true; + return !should_fallback; } } @@ -805,11 +791,6 @@ class FindEmulatorImpl : public FindEmulator { out->resize(orig_out_size); return false; } - if (!fc.redirect_to_devnull) { - fprintf(stderr, - "FindEmulator: find: `%s': No such file or directory\n", - ConcatDir(fc.chdir, finddir).c_str()); - } continue; } |
