]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: fix block stat naming
authorEric Blake <eblake@redhat.com>
Tue, 3 Jan 2012 03:43:07 +0000 (20:43 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 3 Jan 2012 03:43:07 +0000 (20:43 -0700)
Typo has existed since API introduction in commit ee0d8c3.

* src/qemu/qemu_driver.c (qemuDomainBlockStatsFlags): Use correct
name.

src/qemu/qemu_driver.c

index ad592d626e0f79017b17d1bc79eb1d19e9050efe..82bab672a917105353589f9d76325d80e604ea14 100644 (file)
@@ -7763,10 +7763,10 @@ qemuDomainBlockStatsFlags(virDomainPtr dom,
     if (tmp < *nparams && flush_total_times != -1) {
         param = &params[tmp];
         if (virStrcpyStatic(param->field,
-                            VIR_DOMAIN_BLOCK_STATS_READ_TOTAL_TIMES) == NULL) {
+                            VIR_DOMAIN_BLOCK_STATS_FLUSH_TOTAL_TIMES) == NULL) {
             qemuReportError(VIR_ERR_INTERNAL_ERROR,
                             _("Field name '%s' too long"),
-                            VIR_DOMAIN_BLOCK_STATS_READ_TOTAL_TIMES);
+                            VIR_DOMAIN_BLOCK_STATS_FLUSH_TOTAL_TIMES);
             goto endjob;
         }
         param->type = VIR_TYPED_PARAM_LLONG;