Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
6927aa15
Commit
6927aa15
authored
May 02, 2017
by
Gabi Melman
Committed by
GitHub
May 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update android_sink.h
parent
f0f4a521
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
android_sink.h
include/spdlog/sinks/android_sink.h
+3
-3
No files found.
include/spdlog/sinks/android_sink.h
View file @
6927aa15
...
...
@@ -16,7 +16,7 @@
#include <chrono>
#if !defined(SPDLOG_ANDROID_LOG_NUM_OF_RETRIES)
define
SPDLOG_ANDROID_LOG_NUM_OF
_RETRIES
2
#define SPDLOG_ANDROID
_RETRIES 2
#endif
namespace
spdlog
...
...
@@ -40,8 +40,8 @@ public:
// See system/core/liblog/logger_write.c for explanation of return value
int
ret
=
__android_log_write
(
priority
,
_tag
.
c_str
(),
msg_output
);
int
retry_count
=
1
;
while
((
ret
==
-
11
/*EAGAIN*/
)
&&
(
retry_count
<
SPDLOG_ANDROID_
LOG_NUM_OF_
RETRIES
))
int
retry_count
=
0
;
while
((
ret
==
-
11
/*EAGAIN*/
)
&&
(
retry_count
<
SPDLOG_ANDROID_RETRIES
))
{
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
5
));
ret
=
__android_log_write
(
priority
,
_tag
.
c_str
(),
msg_output
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment