[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v8 04/10] qcow2: Use abort() instead of assert(false
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v8 04/10] qcow2: Use abort() instead of assert(false) |
Date: |
Wed, 3 Jun 2015 22:13:33 +0200 |
Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
---
block/qcow2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/qcow2.c b/block/qcow2.c
index 0b514f9..c444960 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -2744,9 +2744,9 @@ static int qcow2_amend_options(BlockDriverState *bs,
QemuOpts *opts,
error_report("Cannot change refcount entry width");
return -ENOTSUP;
} else {
- /* if this assertion fails, this probably means a new option was
+ /* if this point is reached, this probably means a new option was
* added without having it covered here */
- assert(false);
+ abort();
}
desc++;
--
2.4.1
- [Qemu-devel] [PATCH v8 00/10] qcow2: Support refcount order amendment, Max Reitz, 2015/06/03
- [Qemu-devel] [PATCH v8 01/10] progress: Allow regressing progress, Max Reitz, 2015/06/03
- [Qemu-devel] [PATCH v8 04/10] qcow2: Use abort() instead of assert(false),
Max Reitz <=
- [Qemu-devel] [PATCH v8 03/10] qcow2: Use error_report() in qcow2_amend_options(), Max Reitz, 2015/06/03
- [Qemu-devel] [PATCH v8 02/10] block: Add opaque value to the amend CB, Max Reitz, 2015/06/03
- [Qemu-devel] [PATCH v8 05/10] qcow2: Split upgrade/downgrade paths for amend, Max Reitz, 2015/06/03
- [Qemu-devel] [PATCH v8 06/10] qcow2: Use intermediate helper CB for amend, Max Reitz, 2015/06/03
- [Qemu-devel] [PATCH v8 07/10] qcow2: Add function for refcount order amendment, Max Reitz, 2015/06/03
- [Qemu-devel] [PATCH v8 08/10] qcow2: Invoke refcount order amendment function, Max Reitz, 2015/06/03