]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (dos) debug what we read from first sector
authorKarel Zak <kzak@redhat.com>
Tue, 14 Feb 2017 13:46:19 +0000 (14:46 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Feb 2017 13:46:19 +0000 (14:46 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c

index 6adcc7230eab182331b97d42efe283a508c48a45..c7c7772e8ff9963ec8d62e3c5151c65320c0f0e7 100644 (file)
@@ -317,6 +317,12 @@ static void dos_init(struct fdisk_context *cxt)
                pe->sectorbuffer = cxt->firstsector;
                pe->private_sectorbuffer = 0;
                pe->changed = 0;
+
+               DBG(LABEL, ul_debug("DOS: initialize: #%zu start=%u size=%u sysid=%02x",
+                                       i + 1,
+                                       dos_partition_get_start(pe->pt_entry),
+                                       dos_partition_get_size(pe->pt_entry),
+                                       pe->pt_entry->sys_ind));
        }
 
        if (fdisk_is_listonly(cxt))