Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
ab207a1b
Commit
ab207a1b
authored
Dec 04, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
va_list cannot be reused on x86
parent
f152e8c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
daemon.cpp
native/jni/core/daemon.cpp
+4
-1
No files found.
native/jni/core/daemon.cpp
View file @
ab207a1b
...
@@ -158,6 +158,9 @@ void setup_logfile(bool reset) {
...
@@ -158,6 +158,9 @@ void setup_logfile(bool reset) {
}
}
static
int
magisk_log
(
int
prio
,
const
char
*
fmt
,
va_list
ap
)
{
static
int
magisk_log
(
int
prio
,
const
char
*
fmt
,
va_list
ap
)
{
va_list
args
;
va_copy
(
args
,
ap
);
// Log to logcat
// Log to logcat
__android_log_vprint
(
prio
,
"Magisk"
,
fmt
,
ap
);
__android_log_vprint
(
prio
,
"Magisk"
,
fmt
,
ap
);
...
@@ -185,7 +188,7 @@ static int magisk_log(int prio, const char *fmt, va_list ap) {
...
@@ -185,7 +188,7 @@ static int magisk_log(int prio, const char *fmt, va_list ap) {
int
ms
=
tv
.
tv_usec
/
1000
;
int
ms
=
tv
.
tv_usec
/
1000
;
len
+=
sprintf
(
buf
+
len
,
".%03d %c : "
,
ms
,
type
);
len
+=
sprintf
(
buf
+
len
,
".%03d %c : "
,
ms
,
type
);
strcpy
(
buf
+
len
,
fmt
);
strcpy
(
buf
+
len
,
fmt
);
return
vfprintf
(
log_file
,
buf
,
a
p
);
return
vfprintf
(
log_file
,
buf
,
a
rgs
);
}
}
static
void
android_logging
()
{
static
void
android_logging
()
{
...
...
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