diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2008-04-16 08:15:56 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2008-04-16 08:15:56 +0100 |
commit | 027b0d92ed236fa24f211e053e81189cddffe7d7 (patch) | |
tree | c4c421cc01b9b964bc0cd471e65633f2b8d6cd1d /virt-df/virt_df_mbr.ml | |
parent | 291265b7171d332d2969e07ac189d876e3d7f26d (diff) | |
download | virt-top-027b0d92ed236fa24f211e053e81189cddffe7d7.tar.gz virt-top-027b0d92ed236fa24f211e053e81189cddffe7d7.tar.xz virt-top-027b0d92ed236fa24f211e053e81189cddffe7d7.zip |
Make debug selectable at runtime.
Diffstat (limited to 'virt-df/virt_df_mbr.ml')
-rw-r--r-- | virt-df/virt_df_mbr.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/virt-df/virt_df_mbr.ml b/virt-df/virt_df_mbr.ml index b56189c..75e0661 100644 --- a/virt-df/virt_df_mbr.ml +++ b/virt-df/virt_df_mbr.ml @@ -133,8 +133,9 @@ and parse_mbr_entry dev i bits = and make_mbr_entry part_status dev partno part_type first_lba part_size = let first_lba = uint64_of_int32 first_lba in let part_size = uint64_of_int32 part_size in - eprintf "first_lba = %Lx\n" first_lba; - eprintf "part_size = %Lx\n" part_size; + if !debug then + eprintf "make_mbr_entry: first_lba = %Lx part_size = %Lx\n%!" + first_lba part_size; { part_status = part_status; part_type = part_type; part_dev = new partition_device dev partno first_lba part_size; |