qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V6 14/14] hmp: show snapshots on single block de


From: Wenchao Xia
Subject: Re: [Qemu-devel] [PATCH V6 14/14] hmp: show snapshots on single block device
Date: Tue, 26 Feb 2013 15:36:35 +0800
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

于 2013-2-20 4:51, Eric Blake 写道:
On 02/18/2013 07:09 AM, Wenchao Xia wrote:
   This patch added the support of showing internal snapshots on a
single block device in hmp layer, by simply change parameter in

s/change/changing a/

calling of qmp funtion.

s/funtion/function/

  OK.


Signed-off-by: Wenchao Xia <address@hidden>
---
  hmp.c     |    7 ++++++-
  monitor.c |    6 +++---
  2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/hmp.c b/hmp.c
index d29787f..834ee42 100644
--- a/hmp.c
+++ b/hmp.c
@@ -633,8 +633,10 @@ void hmp_info_snapshots(Monitor *mon, const QDict *qdict)
  {
      Error *err = NULL;
      SnapshotInfoList *list;
+    const char *device = qdict_get_try_str(qdict, "device");
+    bool has_device = device ? true : false;

The prevailing style appears to be:

bool has_device = !!device;

  oops, thanks for tipping it.


--
Best Regards

Wenchao Xia




reply via email to

[Prev in Thread] Current Thread [Next in Thread]