diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-11-02 07:44:59 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-11-02 07:44:59 +0000 |
| commit | 03e432ad9cfa06218afdda215c66e94dea5af208 (patch) | |
| tree | 486abd060899216b7285db60bc462d6bfce6cccb /lib/libdisk/chunk.c | |
| parent | 0a464717212e740731eda753ba662c06ac64f3b4 (diff) | |
Notes
Diffstat (limited to 'lib/libdisk/chunk.c')
| -rw-r--r-- | lib/libdisk/chunk.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c index e41796b9a02f..0fbb754da837 100644 --- a/lib/libdisk/chunk.c +++ b/lib/libdisk/chunk.c @@ -392,10 +392,12 @@ Print_Chunk(struct chunk *c1,int offset) putchar('>'); for (; i < 10; i++) putchar(' '); - printf("%p %8ld %8lu %8lu %-8s %-16s %-8s 0x%02x %s", - c1, c1->offset, c1->size, c1->end, c1->name, c1->sname, - chunk_name(c1->type), c1->subtype, - ShowChunkFlags(c1)); +#ifndef __ia64__ + printf("%p ", c1); +#endif + printf("%8ld %8lu %8lu %-8s %-16s %-8s 0x%02x %s", c1->offset, + c1->size, c1->end, c1->name, c1->sname, chunk_name(c1->type), + c1->subtype, ShowChunkFlags(c1)); putchar('\n'); Print_Chunk(c1->part, offset + 2); Print_Chunk(c1->next, offset); @@ -430,6 +432,11 @@ Delete_Chunk2(struct disk *d, struct chunk *c, int rflags) break; case part: c1 = Find_Mother_Chunk(d->chunks, c->offset, c->end, freebsd); +#ifdef __ia64__ + if (c1 == NULL) + c1 = Find_Mother_Chunk(d->chunks, c->offset, c->end, + whole); +#endif break; default: c1 = Find_Mother_Chunk(d->chunks, c->offset, c->end, extended); |
