Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pantsgolem
hfsplusutils
hfsplusutils-debug.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hfsplusutils-debug.patch of Package hfsplusutils
Index: hfsplus-1.0.4/libhfsp/src/volume.c =================================================================== --- hfsplus-1.0.4.orig/libhfsp/src/volume.c 2008-11-12 12:19:05.000000000 +0100 +++ hfsplus-1.0.4/libhfsp/src/volume.c 2008-11-12 15:55:57.000000000 +0100 @@ -52,7 +52,7 @@ int volume_readinbuf(volume * vol,void* ASSERT( block < vol->maxblocks); blksize_bits = vol->blksize_bits; - // printf("Reading from %lx\n", block << blksize_bits); + printf("volume_readinbuf: Reading from %lx\n", block << blksize_bits); if (os_seek(&vol->fd, block, blksize_bits) == block) if (1 == os_read(&vol->fd, buf, 1, blksize_bits)) return 0; @@ -67,7 +67,7 @@ int volume_writetobuf(volume * vol,void* ASSERT( block < vol->maxblocks); blksize_bits = vol->blksize_bits; - // printf("Writing to %lx\n", block << blksize_bits); + printf("volume_writetobuf: Writing to %lx\n", block << blksize_bits); if (os_seek(&vol->fd, block, blksize_bits) == block) if (1 == os_write(&vol->fd, buf, 1, blksize_bits)) return 0; @@ -323,8 +323,10 @@ void* volume_writefork(void *p, hfsp_for */ static int volume_readbuf(hfsp_vh* vh, void* p) { - if ( (vh->signature = bswabU16_inc(p)) != HFSP_VOLHEAD_SIG) + if ( (vh->signature = bswabU16_inc(p)) != HFSP_VOLHEAD_SIG) { + fprintf(stderr, "volume_readbuf: signature = 0x%04x\n", vh->signature); HFSP_ERROR(-1, "This is not a HFS+ volume"); + } vh->version = bswabU16_inc(p); vh->attributes = bswabU32_inc(p); vh->last_mount_vers = bswabU32_inc(p); @@ -409,6 +411,7 @@ static int volume_read_wrapper(volume * return -1; signature = bswabU16_inc(p); + fprintf(stderr, "volume_read_wrapper: signature = 0x%04x\n", signature); if (signature == HFS_VOLHEAD_SIG) /* Wrapper */ { UInt32 drAlBlkSiz; /* size (in bytes) of allocation blocks */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor