diff options
author | Karel Zak | 2017-12-20 12:31:10 +0100 |
---|---|---|
committer | Karel Zak | 2017-12-20 12:31:10 +0100 |
commit | 760942e284c5b97bb3b31ad88936a2fed2271274 (patch) | |
tree | 80236a308a565ce584bd30921e00a327c44bf0b6 /libfdisk | |
parent | Merge branch 'gpt-part-name' of https://github.com/yontalcar/util-linux (diff) | |
download | kernel-qcow2-util-linux-760942e284c5b97bb3b31ad88936a2fed2271274.tar.gz kernel-qcow2-util-linux-760942e284c5b97bb3b31ad88936a2fed2271274.tar.xz kernel-qcow2-util-linux-760942e284c5b97bb3b31ad88936a2fed2271274.zip |
libfdisk: (gpt) use fdisk_warn() for failed name setting
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk')
-rw-r--r-- | libfdisk/src/gpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index 543b97199..94b4d292e 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -1904,7 +1904,7 @@ static int gpt_set_partition(struct fdisk_context *cxt, size_t n, char *old = encode_to_utf8((unsigned char *)e->name, sizeof(e->name)); len = gpt_entry_set_name(e, pa->name); if (len < 0) - fdisk_info(cxt, _("Failed to translate partition name, name not changed.")); + fdisk_warn(cxt, _("Failed to translate partition name, name not changed.")); else fdisk_info(cxt, _("Partition name changed from '%s' to '%.*s'."), old, len, pa->name); |