@@ -405,8 +405,9 @@ def check_ptrack_sanity(self, idx_dict):
405
405
if idx_dict ['ptrack' ][PageNum ] != 1 :
406
406
if self .verbose :
407
407
print (
408
- 'Page Number {0} of type {1} was added,'
409
- ' but ptrack value is {2}. THIS IS BAD' .format (
408
+ 'File: {0}\n Page Number {1} of type {2} was added,'
409
+ ' but ptrack value is {3}. THIS IS BAD' .format (
410
+ idx_dict ['path' ],
410
411
PageNum , idx_dict ['type' ],
411
412
idx_dict ['ptrack' ][PageNum ])
412
413
)
@@ -420,8 +421,9 @@ def check_ptrack_sanity(self, idx_dict):
420
421
if idx_dict ['ptrack' ][PageNum ] != 0 :
421
422
if self .verbose :
422
423
print (
423
- 'Page Number {0} of type {1} was deleted,'
424
- ' but ptrack value is {2}' .format (
424
+ 'File: {0}\n Page Number {1} of type {2} was deleted,'
425
+ ' but ptrack value is {3}' .format (
426
+ idx_dict ['path' ],
425
427
PageNum , idx_dict ['type' ],
426
428
idx_dict ['ptrack' ][PageNum ])
427
429
)
@@ -437,14 +439,15 @@ def check_ptrack_sanity(self, idx_dict):
437
439
if idx_dict ['ptrack' ][PageNum ] != 1 :
438
440
if self .verbose :
439
441
print (
440
- 'Page Number {0} of type {1} was changed,'
441
- ' but ptrack value is {2}. THIS IS BAD' .format (
442
+ 'File: {0}\n Page Number {1} of type {2} was changed,'
443
+ ' but ptrack value is {3}. THIS IS BAD' .format (
444
+ idx_dict ['path' ],
442
445
PageNum , idx_dict ['type' ],
443
446
idx_dict ['ptrack' ][PageNum ])
444
447
)
445
448
print (
446
- "\n Old checksumm: {0}\n "
447
- " New checksumm: {1}" .format (
449
+ " Old checksumm: {0}\n "
450
+ " New checksumm: {1}" .format (
448
451
idx_dict ['old_pages' ][PageNum ],
449
452
idx_dict ['new_pages' ][PageNum ])
450
453
)
@@ -463,8 +466,9 @@ def check_ptrack_sanity(self, idx_dict):
463
466
if idx_dict ['ptrack' ][PageNum ] != 0 :
464
467
if self .verbose :
465
468
print (
466
- 'Page Number {0} of type {1} was not changed,'
467
- ' but ptrack value is {2}' .format (
469
+ 'File: {0}\n Page Number {1} of type {2} was not changed,'
470
+ ' but ptrack value is {3}' .format (
471
+ idx_dict ['path' ],
468
472
PageNum , idx_dict ['type' ],
469
473
idx_dict ['ptrack' ][PageNum ]
470
474
)
0 commit comments