[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1] hmp: 'info snapshots' not showing the id
From: |
Seeteena Thoufeek |
Subject: |
[Qemu-devel] [PATCH v1] hmp: 'info snapshots' not showing the id |
Date: |
Tue, 21 Nov 2017 19:39:18 +0530 |
(qemu) info snapshots
List of snapshots present on all disks:
ID TAG VM SIZE DATE VM CLOCK
-- 1 314M 2017-11-15 15:22:18 00:02:25.695
-- 2 319M 2017-11-15 15:23:03 00:02:45.970
-- 3 319M 2017-11-15 15:23:37 00:02:56.328
ID field is showing -- with no information.
Signed-off-by: Seeteena Thoufeek <address@hidden>
---
hmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hmp.c b/hmp.c
index 35a7041..1921b3b 100644
--- a/hmp.c
+++ b/hmp.c
@@ -1454,7 +1454,7 @@ void hmp_info_snapshots(Monitor *mon, const QDict *qdict)
/* The ID is not guaranteed to be the same on all images, so
* overwrite it.
*/
- pstrcpy(sn->id_str, sizeof(sn->id_str), "--");
+ pstrcpy(sn->id_str, sizeof(sn->id_str), sn->id_str);
bdrv_snapshot_dump((fprintf_function)monitor_printf, mon, sn);
monitor_printf(mon, "\n");
}
--
1.8.3.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH v1] hmp: 'info snapshots' not showing the id,
Seeteena Thoufeek <=