summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisk.c
diff options
context:
space:
mode:
authorDavidlohr Bueso2012-05-21 22:32:25 +0200
committerKarel Zak2012-05-23 10:53:30 +0200
commitf7b1f75e68362071fd3f344fe13d1356f2047a6f (patch)
tree9ff25a0f2f8853a682c3629c4769d35adef1f68f /fdisk/fdisk.c
parentfdisk: introduce fdisk context (diff)
downloadkernel-qcow2-util-linux-f7b1f75e68362071fd3f344fe13d1356f2047a6f.tar.gz
kernel-qcow2-util-linux-f7b1f75e68362071fd3f344fe13d1356f2047a6f.tar.xz
kernel-qcow2-util-linux-f7b1f75e68362071fd3f344fe13d1356f2047a6f.zip
fdisk: add debug support
Based on libmnt, this patch adds basic debugging support for fdisk. Currently only CONTEXT is debugged, yet keeps exact functionality as libmnt/libblkid. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'fdisk/fdisk.c')
-rw-r--r--fdisk/fdisk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index 7f94523c0..aac41a1ed 100644
--- a/fdisk/fdisk.c
+++ b/fdisk/fdisk.c
@@ -2168,6 +2168,8 @@ int main(int argc, char **argv)
}
}
+ fdisk_init_debug(0);
+
if (user_set_sector_size && argc-optind != 1)
printf(_("Warning: the -b (set sector size) option should"
" be used with one specified device\n"));