You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.7 KiB

  1. From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <rbrito@ime.usp.br>
  2. Date: Thu, 24 Oct 2013 01:11:21 -0200
  3. Subject: Adjust types for printing
  4. Try to address the issues of a given integral type having different sizes
  5. in 32 and 64-bit architectures.
  6. ---
  7. fsck_hfs.tproj/dfalib/SControl.c | 2 +-
  8. fsck_hfs.tproj/dfalib/hfs_endian.c | 2 +-
  9. 2 files changed, 2 insertions(+), 2 deletions(-)
  10. --- a/fsck_hfs.tproj/dfalib/SControl.c
  11. +++ b/fsck_hfs.tproj/dfalib/SControl.c
  12. @@ -776,7 +776,7 @@ static int ScavSetUp( SGlob *GPtr)
  13. pointer = (ScavStaticStructures *) AllocateClearMemory( sizeof(ScavStaticStructures) );
  14. if ( pointer == nil ) {
  15. if ( GPtr->logLevel >= kDebugLog ) {
  16. - printf( "\t error %d - could not allocate %ld bytes of memory \n",
  17. + printf( "\t error %d - could not allocate %i bytes of memory \n",
  18. R_NoMem, sizeof(ScavStaticStructures) );
  19. }
  20. return( R_NoMem );
  21. --- a/fsck_hfs.tproj/dfalib/hfs_endian.c
  22. +++ b/fsck_hfs.tproj/dfalib/hfs_endian.c
  23. @@ -563,7 +563,7 @@ hfs_swap_HFSPlusBTInternalNode (
  24. /* Make sure name length is consistent with key length */
  25. if (keyLength < sizeof(srcKey->parentID) + sizeof(srcKey->nodeName.length) +
  26. srcKey->nodeName.length*sizeof(srcKey->nodeName.unicode[0])) {
  27. - if (debug) printf("hfs_swap_HFSPlusBTInternalNode: catalog record #%d keyLength=%d expected=%lu\n",
  28. + if (debug) printf("hfs_swap_HFSPlusBTInternalNode: catalog record #%d keyLength=%d expected=%i\n",
  29. srcDesc->numRecords-i, keyLength, sizeof(srcKey->parentID) + sizeof(srcKey->nodeName.length) +
  30. srcKey->nodeName.length*sizeof(srcKey->nodeName.unicode[0]));
  31. WriteError(fcb->fcbVolume->vcbGPtr, E_KeyLen, fcb->fcbFileID, src->blockNum);