OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b97351
)
Fix output of pointers for 64bit devices.
author
Michael Lentine
<mlentine@google.com>
Fri, 31 Oct 2014 18:08:19 +0000
(11:08 -0700)
committer
Michael Lentine
<mlentine@google.com>
Fri, 31 Oct 2014 18:08:19 +0000
(11:08 -0700)
Change-Id: I279c1cf8d4c126b98f4a92ca807ade3749d01ff0
libs/binder/TextOutput.cpp
patch
|
blob
|
history
diff --git
a/libs/binder/TextOutput.cpp
b/libs/binder/TextOutput.cpp
index
db3e858
..
2ed5188
100644
(file)
--- a/
libs/binder/TextOutput.cpp
+++ b/
libs/binder/TextOutput.cpp
@@
-116,8
+116,8
@@
TextOutput& operator<<(TextOutput& to, double val)
TextOutput& operator<<(TextOutput& to, const void* val)
{
- char buf[
16
];
- s
printf(buf
, "%p", val);
+ char buf[
32
];
+ s
nprintf(buf, sizeof(buf)
, "%p", val);
to.print(buf, strlen(buf));
return to;
}