Browse files

Fix getprop Format

getprop used to output a colon after the property name like:
[]: [property.value]

Add back the colon that was missing, because'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
Brian Muramatsu committed Feb 15, 2011
1 parent b5d68a3 commit a95abdd8ed69bff64f272f21cfad9c3d4b006c4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit a95abdd

Please sign in to comment.