qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 09/11] QMP: Port 'info blockstats' command


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 09/11] QMP: Port 'info blockstats' command
Date: Tue, 23 Jun 2009 09:01:52 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Luiz Capitulino wrote:
Signed-off-by: Luiz Capitulino <address@hidden>
---
 block.c   |   18 +++++++++---------
 monitor.c |    3 ++-
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/block.c b/block.c
index aca5a6d..3b4af27 100644
--- a/block.c
+++ b/block.c
@@ -1102,15 +1102,15 @@ void bdrv_info_stats(Monitor *mon)
     BlockDriverState *bs;
for (bs = bdrv_first; bs != NULL; bs = bs->next) {
-        monitor_printf(mon, "%s:"
-                       " rd_bytes=%" PRIu64
-                       " wr_bytes=%" PRIu64
-                       " rd_operations=%" PRIu64
-                       " wr_operations=%" PRIu64
-                       "\n",
-                       bs->device_name,
-                       bs->rd_bytes, bs->wr_bytes,
-                       bs->rd_ops, bs->wr_ops);
+        monitor_printf_data(mon, "%s:"
+                            " rd_bytes=%" PRIu64
+                            " wr_bytes=%" PRIu64
+                            " rd_operations=%" PRIu64
+                            " wr_operations=%" PRIu64
+                            "\n",
+                            bs->device_name,
+                            bs->rd_bytes, bs->wr_bytes,
+                            bs->rd_ops, bs->wr_ops);

monitor_printf_list(mon, bs->device_name,
                             "rd_bytes", MON_BYTES, bs->rd_bytes,
                             "wr_bytes", MON_BYTES, bs->wr_bytes,
                             "rd_operations", MON_BYTES, bs->rd_ops,
                             "wr_operations", MON_BYTES, bs->wr_ops,
                             NULL);

Regards,

Anthony Liguori





reply via email to

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