]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: (dos) remove remaining printf() usage
authorKarel Zak <kzak@redhat.com>
Tue, 25 Jun 2013 11:15:09 +0000 (13:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:47:03 +0000 (16:47 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdiskdoslabel.c

index ba1e0e445f925fa69e9d3343b2952ee1ee1f7d48..40656c4dc17cabe28f67a5a7f1688bb06f978cc3 100644 (file)
@@ -440,7 +440,7 @@ static void read_extended(struct fdisk_context *cxt, int ext)
 
 void dos_print_mbr_id(struct fdisk_context *cxt)
 {
-       fdisk_info(cxt, _("Disk identifier: 0x%08x\n"),
+       fdisk_info(cxt, _("Disk identifier: 0x%08x"),
                        mbr_get_id(cxt->firstsector));
 }
 
@@ -1180,7 +1180,7 @@ static int dos_add_partition(
                        return rc;
                if (!buf[0]) {
                        c = dflt;
-                       printf(_("Using default response %c\n"), c);
+                       fdisk_info(cxt, _("Using default response %c"), c);
                } else
                        c = tolower(buf[0]);
 
@@ -1673,7 +1673,7 @@ void dos_fix_partition_table_order(struct fdisk_context *cxt)
        if (i)
                fix_chain_of_logicals(cxt);
 
-       printf(_("Done.\n"));
+       fdisk_info(cxt, _("Done."));
 
 }