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 /disk-utils | |
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 'disk-utils')
-rw-r--r-- | disk-utils/fdisk-menu.c | 6 | ||||
-rw-r--r-- | disk-utils/fdisk.c | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/disk-utils/fdisk-menu.c b/disk-utils/fdisk-menu.c index 8afdf6908..f920ad01c 100644 --- a/disk-utils/fdisk-menu.c +++ b/disk-utils/fdisk-menu.c @@ -661,8 +661,7 @@ static int gpt_menu_cb(struct fdisk_context **cxt0, return -ENOMEM; *cxt0 = cxt = mbr; fdisk_enable_details(cxt, 1); /* keep us in expert mode */ - fdisk_sinfo(cxt, FDISK_INFO_SUCCESS, - _("Entering protective/hybrid MBR disklabel.")); + fdisk_info(cxt, _("Entering protective/hybrid MBR disklabel.")); return 0; } @@ -756,8 +755,7 @@ static int dos_menu_cb(struct fdisk_context **cxt0, fdisk_unref_context(bsd); else { *cxt0 = cxt = bsd; - fdisk_sinfo(cxt, FDISK_INFO_SUCCESS, - _("Entering nested BSD disklabel.")); + fdisk_info(cxt, _("Entering nested BSD disklabel.")); } break; } diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 7d6951df9..8a66caeed 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -514,7 +514,7 @@ void change_partition_type(struct fdisk_context *cxt) } while (!t); if (fdisk_set_partition_type(cxt, i, t) == 0) - fdisk_sinfo(cxt, FDISK_INFO_SUCCESS, + fdisk_info(cxt, _("Changed type of partition '%s' to '%s'."), old, t ? fdisk_parttype_get_name(t) : _("Unknown")); else |