diff options
| author | Spencer Low <CompareAndSwap@gmail.com> | 2015-08-11 16:00:13 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2015-08-13 14:08:31 -0700 |
| commit | bdab59a8613c732df5d746328ff2268be8da13ab (patch) | |
| tree | 3a6c5abbafd4ee588760ecd50b9b2b544f10d2e8 /base/errors_unix.cpp | |
| parent | 57532b2a067082fa5968094c2c615f1832fa1971 (diff) | |
libbase: logging fixes
Win32:
- getprogname(): call basename() which is available in mingw's crt.
Don't potentially go recursive with DCHECK_GT().
- Use Win32 critical section instead of mutex.
Other:
- Change log_characters check to compile-time.
- Fix code that gets the basename of __FILE__. The previous code was not
setting _file, so it didn't work.
- Save and restore errno for LOG calls. Inspired by similar Chromium code.
Change-Id: Ie7bb700918be726fa81d60177d1894d2daeff296
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
