]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: remove duplicate code (already in libfdisk)
authorKarel Zak <kzak@redhat.com>
Wed, 5 Dec 2012 14:08:26 +0000 (15:08 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Mar 2013 10:20:40 +0000 (11:20 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/utils.c

index db36290f50f01f8533c30e1bedafc522cca7da1a..275fee139ac3abfbcceb9a6298d0ade913fd62ad 100644 (file)
@@ -442,33 +442,6 @@ int fdisk_create_disklabel(struct fdisk_context *cxt, const char *name)
        return cxt->label->create(cxt);
 }
 
-/**
- * fdisk_init_debug:
- * @mask: debug mask (0xffff to enable full debuging)
- *
- * If the @mask is not specified then this function reads
- * FDISK_DEBUG environment variable to get the mask.
- *
- * Already initialized debugging stuff cannot be changed. It does not
- * have effect to call this function twice.
- */
-void fdisk_init_debug(int mask)
-{
-       if (fdisk_debug_mask & FDISK_DEBUG_INIT)
-               return;
-       if (!mask) {
-               char *str = getenv("FDISK_DEBUG");
-               if (str)
-                       fdisk_debug_mask = strtoul(str, 0, 0);
-       } else
-               fdisk_debug_mask = mask;
-
-       if (fdisk_debug_mask)
-               fprintf(stderr, "fdisk: debug mask set to 0x%04x.\n",
-                      fdisk_debug_mask);
-       fdisk_debug_mask |= FDISK_DEBUG_INIT;
-}
-
 /**
  * fdisk_new_context:
  * @fname: path to the device to be handled