diff options
author | Karel Zak | 2014-11-21 15:31:55 +0100 |
---|---|---|
committer | Karel Zak | 2014-11-21 15:31:55 +0100 |
commit | 0477369af46fd909960a752df63f989a932bc764 (patch) | |
tree | 4c7b721ef5795440e4a7b25075f83ba527c0ef3e /libfdisk/src/dos.c | |
parent | ldattach: add fallback for N_GSM0710 (diff) | |
download | kernel-qcow2-util-linux-0477369af46fd909960a752df63f989a932bc764.tar.gz kernel-qcow2-util-linux-0477369af46fd909960a752df63f989a932bc764.tar.xz kernel-qcow2-util-linux-0477369af46fd909960a752df63f989a932bc764.zip |
libfdisk: remove flags from fdisk_ask API
We don't use it for anything usable, lets kill this over-engineering.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/dos.c')
-rw-r--r-- | libfdisk/src/dos.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index edf5cc2e0..30b37e672 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -655,8 +655,7 @@ static int dos_create_disklabel(struct fdisk_context *cxt) /* Put MBR signature */ mbr_set_magic(cxt->firstsector); - fdisk_sinfo(cxt, FDISK_INFO_SUCCESS, - ("Created a new DOS disklabel with disk " + fdisk_info(cxt, _("Created a new DOS disklabel with disk " "identifier 0x%08x."), id); return 0; } @@ -693,8 +692,7 @@ static int dos_set_disklabel_id(struct fdisk_context *cxt) l->non_pt_changed = 1; fdisk_label_set_changed(cxt->label, 1); - fdisk_sinfo(cxt, FDISK_INFO_SUCCESS, - _("Disk identifier changed from 0x%08x to 0x%08x."), + fdisk_info(cxt, _("Disk identifier changed from 0x%08x to 0x%08x."), old, id); return 0; } @@ -2207,8 +2205,7 @@ static int dos_toggle_partition_flag( p->boot_ind = (p->boot_ind ? 0 : ACTIVE_FLAG); partition_set_changed(cxt, i, 1); - fdisk_sinfo(cxt, FDISK_INFO_SUCCESS, - p->boot_ind ? + fdisk_info(cxt, p->boot_ind ? _("The bootable flag on partition %zu is enabled now.") : _("The bootable flag on partition %zu is disabled now."), i + 1); |