diff options
author | Karel Zak | 2014-03-21 12:35:21 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-21 12:35:21 +0100 |
commit | 881410671f24fc7910cfcec66f37abb94008bbfd (patch) | |
tree | e72c403befcca2cd89f86456eebc1dbe9b6273a6 /libfdisk/src/sgi.c | |
parent | libblkid: use new debug functions (diff) | |
download | kernel-qcow2-util-linux-881410671f24fc7910cfcec66f37abb94008bbfd.tar.gz kernel-qcow2-util-linux-881410671f24fc7910cfcec66f37abb94008bbfd.tar.xz kernel-qcow2-util-linux-881410671f24fc7910cfcec66f37abb94008bbfd.zip |
libfdisk: use new debug functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/sgi.c')
-rw-r--r-- | libfdisk/src/sgi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libfdisk/src/sgi.c b/libfdisk/src/sgi.c index c782ef3fa..d32b06b94 100644 --- a/libfdisk/src/sgi.c +++ b/libfdisk/src/sgi.c @@ -567,14 +567,14 @@ static int verify_disklabel(struct fdisk_context *cxt, int verbose) sgi_get_start_sector(cxt, Index[0])); if (verbose && sgi_get_num_sectors(cxt, Index[0]) != lastblock) - DBG(LABEL, dbgprint( + DBG(LABEL, ul_debug( "entire disk partition=%ds, but disk=%ds", sgi_get_num_sectors(cxt, Index[0]), lastblock)); lastblock = sgi_get_num_sectors(cxt, Index[0]); } else if (verbose) { fdisk_info(cxt, _("Partition 11 should cover the entire disk.")); - DBG(LABEL, dbgprint("sysid=%d\tpartition=%d", + DBG(LABEL, ul_debug("sysid=%d\tpartition=%d", sgi_get_sysid(cxt, Index[0]), Index[0]+1)); } for (i=1, start=0; i<sortcount; i++) { @@ -582,12 +582,12 @@ static int verify_disklabel(struct fdisk_context *cxt, int verbose) if (verbose && cylsize && (sgi_get_start_sector(cxt, Index[i]) % cylsize) != 0) - DBG(LABEL, dbgprint("partition %d does not start on " + DBG(LABEL, ul_debug("partition %d does not start on " "cylinder boundary.", Index[i]+1)); if (verbose && cylsize && sgi_get_num_sectors(cxt, Index[i]) % cylsize != 0) - DBG(LABEL, dbgprint("partition %d does not end on " + DBG(LABEL, ul_debug("partition %d does not end on " "cylinder boundary.", Index[i]+1)); /* We cannot handle several "entire disk" entries. */ @@ -623,7 +623,7 @@ static int verify_disklabel(struct fdisk_context *cxt, int verbose) if (cylsize && start % cylsize) start += cylsize - (start % cylsize); - DBG(LABEL, dbgprint("%2d:%12d\t%12d\t%12d", Index[i], + DBG(LABEL, ul_debug("%2d:%12d\t%12d\t%12d", Index[i], sgi_get_start_sector(cxt, Index[i]), sgi_get_num_sectors(cxt, Index[i]), sgi_get_sysid(cxt, Index[i]))); |