summaryrefslogtreecommitdiff
path: root/gptpart.cc
diff options
context:
space:
mode:
authorGilles Moris <gilles.moris@free.fr>2019-05-15 06:42:41 +0200
committerGilles Moris <gilles.moris@free.fr>2019-05-15 06:42:41 +0200
commita84363b9b1a4c0b309c8cc09a9b812fdd7784fa4 (patch)
tree36f07c3f0f9d2c0f8ed11a871be186345f75e157 /gptpart.cc
parent53710d8b51904bd34298ff987b0cbbd89a394b4d (diff)
downloadsgdisk-a84363b9b1a4c0b309c8cc09a9b812fdd7784fa4.tar.gz
gdisk: show also previous type as cgdisk does when changing partition type
Diffstat (limited to 'gptpart.cc')
-rw-r--r--gptpart.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gptpart.cc b/gptpart.cc
index 666263b..0684fea 100644
--- a/gptpart.cc
+++ b/gptpart.cc
@@ -442,7 +442,7 @@ void GPTPart::ChangeType(void) {
changeName = (GetDescription() == GetTypeName());
#endif
- cout << "Current type is '" << GetTypeName() << "'\n";
+ cout << "Current type is " << hex << GetHexType() << dec << " (" << GetTypeName() << ")\n";
do {
cout << "Hex code or GUID (L to show codes, Enter = " << hex << DEFAULT_GPT_TYPE << dec << "): ";
line = ReadString();