summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ideviceinstaller.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index c50bacf..d07cedf 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -170,27 +170,7 @@ static void print_apps(plist_t apps)
170 if (!strcmp(key, "CFBundleIdentifier")) { 170 if (!strcmp(key, "CFBundleIdentifier")) {
171 printf("%s", plist_get_string_ptr(node, NULL)); 171 printf("%s", plist_get_string_ptr(node, NULL));
172 } else { 172 } else {
173 uint64_t uval = 0; 173 plist_write_to_stream(node, stdout, PLIST_FORMAT_PRINT, PLIST_OPT_NO_NEWLINE);
174 switch (plist_get_node_type(node)) {
175 case PLIST_STRING:
176 printf("\"%s\"", plist_get_string_ptr(node, NULL));
177 break;
178 case PLIST_INT:
179 plist_get_uint_val(node, &uval);
180 printf("%" PRIu64, uval);
181 break;
182 case PLIST_BOOLEAN:
183 printf("%s", plist_bool_val_is_true(node) ? "true" : "false");
184 break;
185 case PLIST_ARRAY:
186 printf("(array)");
187 break;
188 case PLIST_DICT:
189 printf("(dict)");
190 break;
191 default:
192 break;
193 }
194 } 174 }
195 } 175 }
196 } 176 }