[libvirt] [PATCH] maint: fix comment typo

2014-08-23 Thread Eric Blake
* src/util/virbuffer.h: s/occured/occurred/

Signed-off-by: Eric Blake 
---

Pushing under the trivial rule.

 src/util/virbuffer.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virbuffer.h b/src/util/virbuffer.h
index bdfff5e..90e248d 100644
--- a/src/util/virbuffer.h
+++ b/src/util/virbuffer.h
@@ -1,7 +1,7 @@
 /*
  * virbuffer.h: buffers for libvirt
  *
- * Copyright (C) 2005-2008, 2011-2013 Red Hat, Inc.
+ * Copyright (C) 2005-2008, 2011-2014 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -64,7 +64,7 @@ int virBufferCheckErrorInternal(const virBuffer *buf,
  *
  * Checks if the buffer is in error state and reports an error.
  *
- * Returns 0 if no error has occured, otherwise an error is reported
+ * Returns 0 if no error has occurred, otherwise an error is reported
  * and -1 is returned.
  */
 # define virBufferCheckError(buf) \
-- 
1.9.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[libvirt] [PATCH] maint: fix comment typo

2013-01-09 Thread Eric Blake
While OOM can have knock-on effects that trash a system, generally
the first symptom is one of memory thrashing.

* src/qemu/qemu_cgroup.c (qemuSetupCgroup): Reword slightly.
---

Pushing under the trivial rule.

 src/qemu/qemu_cgroup.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
index 16a9d7c..6527146 100644
--- a/src/qemu/qemu_cgroup.c
+++ b/src/qemu/qemu_cgroup.c
@@ -1,7 +1,7 @@
 /*
  * qemu_cgroup.c: QEMU cgroup management
  *
- * Copyright (C) 2006-2012 Red Hat, Inc.
+ * Copyright (C) 2006-2013 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -344,8 +344,8 @@ int qemuSetupCgroup(virQEMUDriverPtr driver,

 if (!hard_limit) {
 /* If there is no hard_limit set, set a reasonable one to avoid
- * system trashing caused by exploited qemu.  As 'reasonable limit'
- * has been chosen:
+ * system thrashing caused by exploited qemu.  A 'reasonable
+ * limit' has been chosen:
  * (1 + k) * (domain memory + total video memory) + (32MB for
  * cache per each disk) + F
  * where k = 0.5 and F = 200MB.  The cache for disks is important 
as
-- 
1.8.0.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list