diff options
| author | Timothy Clark <ctimothy@amazon.com> | 2014-03-04 10:02:08 -0800 |
|---|---|---|
| committer | Siva Velusamy <vsiva@google.com> | 2014-03-04 22:59:18 +0000 |
| commit | bc660e10acb26bc09f43460d79c9cdd41b1186ed (patch) | |
| tree | 06b18b5a030b6b529fd39a5149b3d0ee05023a6e | |
| parent | e6be8d98dbe50ab69b254ce83cede0b5c8c1f895 (diff) | |
| download | sdk-bc660e10acb26bc09f43460d79c9cdd41b1186ed.zip sdk-bc660e10acb26bc09f43460d79c9cdd41b1186ed.tar.gz sdk-bc660e10acb26bc09f43460d79c9cdd41b1186ed.tar.bz2 | |
Add hex prefix to systrace tag
For the V1 options dialog, Integer.toHexString is used to
write the value of the debug.atrace.tags.enableflags system
property, but it lacks the "0x" prefix. When this value is later
read by the framework with strtoll, it incorrectly interprets
the number as base 10 instead of hex.
This change updates the writing code to include a "0x" prefix
before the hex value, thereby ensuring that it is correctly
interpreted as a hex value in subsequent read operations.
Change-Id: I3fdb2f99d7e89dd197ee5433c2f54b14f147b62c
| -rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/SystraceOptionsDialogV1.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/SystraceOptionsDialogV1.java b/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/SystraceOptionsDialogV1.java index d4b5e5b..b462ada 100644 --- a/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/SystraceOptionsDialogV1.java +++ b/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/SystraceOptionsDialogV1.java @@ -413,7 +413,7 @@ public class SystraceOptionsDialogV1 extends TitleAreaDialog implements ISystrac @Override public String getTags() { - return mTag == 0 ? null : Integer.toHexString(mTag); + return mTag == 0 ? null : "0x" + Integer.toHexString(mTag); } @Override |
