diff options
Diffstat (limited to 'libblkid/src/partitions/gpt.c')
-rw-r--r-- | libblkid/src/partitions/gpt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libblkid/src/partitions/gpt.c b/libblkid/src/partitions/gpt.c index 186fbd929..7fccd51a1 100644 --- a/libblkid/src/partitions/gpt.c +++ b/libblkid/src/partitions/gpt.c @@ -236,13 +236,13 @@ static struct gpt_header *get_gpt_header( h->header_crc32 = orgcrc; if (crc != le32_to_cpu(orgcrc)) { - DBG(LOWPROBE, blkid_debug("GPT header corrupted")); + DBG(LOWPROBE, ul_debug("GPT header corrupted")); return NULL; } /* Valid header has to be at MyLBA */ if (le64_to_cpu(h->my_lba) != lba) { - DBG(LOWPROBE, blkid_debug( + DBG(LOWPROBE, ul_debug( "GPT->MyLBA mismatch with real position")); return NULL; } @@ -252,14 +252,14 @@ static struct gpt_header *get_gpt_header( /* Check if First and Last usable LBA makes sense */ if (lu < fu || fu > lastlba || lu > lastlba) { - DBG(LOWPROBE, blkid_debug( + DBG(LOWPROBE, ul_debug( "GPT->{First,Last}UsableLBA out of range")); return NULL; } /* The header has to be outside usable range */ if (fu < lba && lba < lu) { - DBG(LOWPROBE, blkid_debug("GPT header is inside usable area")); + DBG(LOWPROBE, ul_debug("GPT header is inside usable area")); return NULL; } @@ -267,7 +267,7 @@ static struct gpt_header *get_gpt_header( esz = le32_to_cpu(h->num_partition_entries) * le32_to_cpu(h->sizeof_partition_entry); if (!esz) { - DBG(LOWPROBE, blkid_debug("GPT entries undefined")); + DBG(LOWPROBE, ul_debug("GPT entries undefined")); return NULL; } @@ -280,14 +280,14 @@ static struct gpt_header *get_gpt_header( *ents = (struct gpt_entry *) get_lba_buffer(pr, le64_to_cpu(h->partition_entries_lba), esz); if (!*ents) { - DBG(LOWPROBE, blkid_debug("GPT entries unreadable")); + DBG(LOWPROBE, ul_debug("GPT entries unreadable")); return NULL; } /* Validate entries */ crc = count_crc32((unsigned char *) *ents, esz); if (crc != le32_to_cpu(h->partition_entry_array_crc32)) { - DBG(LOWPROBE, blkid_debug("GPT entries corrupted")); + DBG(LOWPROBE, ul_debug("GPT entries corrupted")); return NULL; } @@ -373,7 +373,7 @@ static int probe_gpt_pt(blkid_probe pr, } /* the partition has to inside usable range */ if (start < fu || start + size - 1 > lu) { - DBG(LOWPROBE, blkid_debug( + DBG(LOWPROBE, ul_debug( "GPT entry[%d] overflows usable area - ignore", i)); blkid_partlist_increment_partno(ls); |