Skip to content

Commit 40c5d46

Browse files
committed
Fix raw, req/resp printing via libtatsu update
1 parent 809675e commit 40c5d46

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

dep_root/.keep

Whitespace-only changes.

dep_root/include/.keep

Whitespace-only changes.

dep_root/lib/.keep

Whitespace-only changes.

fix_dep_root.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
script_name=$(realpath "$0")
3+
script_base=$(dirname "$script_name")
4+
for file in $(find ${script_base}/dep_root/lib/pkgconfig -name "*.pc"); do export pkg=$(realpath $(dirname $(realpath "${file}"))/../../); pkg=$(echo $pkg | sed 's/\//\\\//g'); sed -i "s/^prefix=.*/prefix=${pkg}/g" $file; done

tsschecker/main.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ int main(int argc, const char * argv[]) {
288288
break;
289289
case '0': // long option: "debug"; can be called as short option
290290
idevicerestore_debug = 1;
291+
tss_set_print_tss_request(1);
292+
tss_set_print_tss_response(1);
291293
tss_set_debug_level(3);
292294
break;
293295
case '1': // long option: "list-devices"; can be called as short option
@@ -300,10 +302,10 @@ int main(int argc, const char * argv[]) {
300302
shshSavePath = optarg;
301303
break;
302304
case '4': // long option: "print-tss-request"; can be called as short option
303-
print_tss_request = 1;
305+
tss_set_print_tss_request(1);
304306
break;
305307
case '5': // long option: "print-tss-response"; can be called as short option
306-
print_tss_response = 1;
308+
tss_set_print_tss_response(1);
307309
break;
308310
case '6': // long option: "beta"; can be called as short option
309311
versVals.useBeta = 1;
@@ -324,6 +326,8 @@ int main(int argc, const char * argv[]) {
324326
case 'r': // long option: "raw"; can be called as short option
325327
rawFilePath = optarg;
326328
idevicerestore_debug = 1;
329+
tss_set_print_tss_request(1);
330+
tss_set_print_tss_response(1);
327331
tss_set_debug_level(3);
328332
break;
329333
case 'c': // long option: "bbsnum"; can be called as short option

tsschecker/tsschecker.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ extern "C" {
3737
#include "debug.h"
3838

3939
extern int dbglog;
40-
extern int print_tss_response;
4140
extern int nocache;
4241
extern int save_shshblobs;
4342
extern int update_install;
4443
extern int erase_install;
4544
extern int save_bplist;
4645
extern const char *shshSavePath;
47-
extern int print_tss_request;
4846

4947
struct bbdevice{
5048
const char *deviceModel;

0 commit comments

Comments
 (0)