diff options
author | Elliott Hughes <enh@google.com> | 2013-10-15 16:43:38 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-10-15 16:49:28 -0700 |
commit | d1eda33f012e46083b91e087fb79d14a5ce70f0e (patch) | |
tree | 2d075e9d43c3a300327e79ee27c5b8330d8dce4c /libc/bionic/__umask_chk.cpp | |
parent | dc9d8d050a43e1cd32f1337e79187124bb15d938 (diff) | |
download | android_bionic-d1eda33f012e46083b91e087fb79d14a5ce70f0e.tar.gz android_bionic-d1eda33f012e46083b91e087fb79d14a5ce70f0e.tar.bz2 android_bionic-d1eda33f012e46083b91e087fb79d14a5ce70f0e.zip |
Avoid confusing "read prevented write" log messages.
Moving to a "function: message" style avoids ambiguity.
Change-Id: If9d590e50265c61725d3673bd03796e65edd2d5e
Diffstat (limited to 'libc/bionic/__umask_chk.cpp')
-rw-r--r-- | libc/bionic/__umask_chk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/bionic/__umask_chk.cpp b/libc/bionic/__umask_chk.cpp index 7d2a99a23..33b712132 100644 --- a/libc/bionic/__umask_chk.cpp +++ b/libc/bionic/__umask_chk.cpp @@ -43,9 +43,9 @@ * greater than 0. */ extern "C" mode_t __umask_chk(mode_t mode) { - if (__predict_false((mode & 0777) != mode)) { - __fortify_chk_fail("umask called with invalid mask", 0); - } + if (__predict_false((mode & 0777) != mode)) { + __fortify_chk_fail("umask: called with invalid mask", 0); + } - return umask(mode); + return umask(mode); } |