Skip to content

Commit

Permalink
Fix getprop Format
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Brian Muramatsu committed Feb 15, 2011
1 parent b5d68a3 commit a95abdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/getprop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a95abdd

Please sign in to comment.