qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v1] hmp: 'info snapshots' not showing the id
@ 2017-11-21 14:09 Seeteena Thoufeek
  2017-12-12 16:41 ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 13+ messages in thread
From: Seeteena Thoufeek @ 2017-11-21 14:09 UTC (permalink / raw)
  To: dgilbert, qemu-devel; +Cc: s1seetee

(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 <s1seetee@linux.vnet.ibm.com>
---
 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

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-01-04 16:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-21 14:09 [Qemu-devel] [PATCH v1] hmp: 'info snapshots' not showing the id Seeteena Thoufeek
2017-12-12 16:41 ` Dr. David Alan Gilbert
2017-12-13  4:50   ` seeteena
2017-12-15  9:18     ` Max Reitz
2017-12-18  9:24       ` seeteena
2017-12-19 14:20         ` Max Reitz
2017-12-20  4:34           ` seeteena
2017-12-20 13:18           ` Dr. David Alan Gilbert
2017-12-21 23:14           ` Eric Blake
2017-12-22  7:37             ` Markus Armbruster
2018-01-02  6:42               ` seeteena
2018-01-02  8:24                 ` Markus Armbruster
2018-01-04 16:24                   ` seeteena

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).