Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
6927aa15
Commit
6927aa15
authored
May 03, 2017
by
Gabi Melman
Committed by
GitHub
May 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update android_sink.h
parent
f0f4a521
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/spdlog/sinks/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