summaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorBrian Muramatsu <btmura@google.com>2011-02-14 17:17:21 -0800
committerBrian Muramatsu <btmura@google.com>2011-02-14 17:17:21 -0800
commita95abdd8ed69bff64f272f21cfad9c3d4b006c4c (patch)
treed909e6938a67a6e7ae1813f123d86169619731bd /toolbox
parentb5d68a3c28d0b7a947373344cbda2a2369d0b67d (diff)
downloadcore-a95abdd8ed69bff64f272f21cfad9c3d4b006c4c.tar.gz
core-a95abdd8ed69bff64f272f21cfad9c3d4b006c4c.tar.bz2
core-a95abdd8ed69bff64f272f21cfad9c3d4b006c4c.zip
Fix getprop Format
getprop used to output a colon after the property name like: [property.name]: [property.value] Add back the colon that was missing, because com.android.ddmlib.GetPropReceiver's regex expects it. Without the colon, the GetPropReceiver doesn't parse the device's properties causing CTS to not recognize the device. Change-Id: I9bef5ab2b310c831c49c8c51cae7f129167c2dc5
Diffstat (limited to 'toolbox')
-rw-r--r--toolbox/getprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolbox/getprop.c b/toolbox/getprop.c
index 616644a6d..c001fda72 100644
--- a/toolbox/getprop.c
+++ b/toolbox/getprop.c
@@ -10,7 +10,7 @@ static void record_prop(const char* key, const char* name, void* opaque)
{
strlist_t* list = opaque;
char temp[PROP_VALUE_MAX + PROP_NAME_MAX + 16];
- snprintf(temp, sizeof temp, "[%s] [%s]", key, name);
+ snprintf(temp, sizeof temp, "[%s]: [%s]", key, name);
strlist_append_dup(list, temp);
}