Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
e65b7ea8
Commit
e65b7ea8
authored
11 years ago
by
Igor Murashkin
Browse files
Options
Downloads
Patches
Plain Diff
utils: Fix broken sdk build on windows
Bug: 11324229 Change-Id: Ia50e79b5e2430faea77b0c98902e8e018fb9ceff
parent
81f2c3d2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libutils/Printer.cpp
+8
-0
8 additions, 0 deletions
libutils/Printer.cpp
libutils/ProcessCallStack.cpp
+2
-0
2 additions, 0 deletions
libutils/ProcessCallStack.cpp
with
10 additions
and
0 deletions
libutils/Printer.cpp
+
8
−
0
View file @
e65b7ea8
...
...
@@ -47,10 +47,16 @@ void Printer::printFormatLine(const char* format, ...) {
va_start
(
arglist
,
format
);
char
*
formattedString
;
#ifndef USE_MINGW
if
(
vasprintf
(
&
formattedString
,
format
,
arglist
)
<
0
)
{
// returns -1 on error
ALOGE
(
"%s: Failed to format string"
,
__FUNCTION__
);
return
;
}
#else
return
;
#endif
va_end
(
arglist
);
printLine
(
formattedString
);
...
...
@@ -113,7 +119,9 @@ void FdPrinter::printLine(const char* string) {
return
;
}
#ifndef USE_MINGW
fdprintf
(
mFd
,
mFormatString
,
mPrefix
,
string
);
#endif
}
/*
...
...
This diff is collapsed.
Click to expand it.
libutils/ProcessCallStack.cpp
+
2
−
0
View file @
e65b7ea8
...
...
@@ -140,6 +140,7 @@ void ProcessCallStack::update(int32_t maxDepth) {
clear
();
// Get current time.
#ifndef USE_MINGW
{
time_t
t
=
time
(
NULL
);
struct
tm
tm
;
...
...
@@ -193,6 +194,7 @@ void ProcessCallStack::update(int32_t maxDepth) {
ALOGE
(
"%s: Failed to readdir from %s (errno = %d, '%s')"
,
__FUNCTION__
,
PATH_SELF_TASK
,
-
code
,
strerror
(
code
));
}
#endif
closedir
(
dp
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment