diff options
author | Nikias Bassen | 2023-09-13 13:42:48 +0200 |
---|---|---|
committer | Nikias Bassen | 2023-09-13 13:42:48 +0200 |
commit | 4191036d58175a873c464d966d8c9e0aa1ec3494 (patch) | |
tree | 5994633dd2cfa621d238f9070eab562ce5619221 /src | |
parent | c8b9f3e582d3543391f7db4cafe96051484f60a9 (diff) | |
download | idevicerestore-4191036d58175a873c464d966d8c9e0aa1ec3494.tar.gz idevicerestore-4191036d58175a873c464d966d8c9e0aa1ec3494.tar.bz2 |
restore: Remove plist debug print for non-existent UniqueBuildID
and print it in a better format if it does exist
Diffstat (limited to 'src')
-rw-r--r-- | src/restore.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c index 0699be7..a7072f0 100644 --- a/src/restore.c +++ b/src/restore.c @@ -3373,7 +3373,10 @@ plist_t restore_get_build_identity(struct idevicerestore_client_t* client, uint8 variant, 0); plist_t unique_id_node = plist_dict_get_item(client->build_manifest, "UniqueBuildID"); - debug_plist(unique_id_node); + if (unique_id_node) { + printf("UniqueBuildID: "); + plist_write_to_stream(unique_id_node, stdout, PLIST_FORMAT_PRINT, PLIST_OPT_NONE); + } return build_identity; } |