[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 19/25] qcow2: Use abort() instead of assert(false
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v7 19/25] qcow2: Use abort() instead of assert(false) |
Date: |
Wed, 18 Feb 2015 17:40:54 -0500 |
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 0548248..6283a1c 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -2729,9 +2729,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.1.0
- Re: [Qemu-devel] [PATCH v7 11/25] qcow2: refcount_order parameter for qcow2_create2, (continued)
- [Qemu-devel] [PATCH v7 12/25] qcow2: Use symbolic macros in qcow2_amend_options, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 13/25] iotests: Prepare for refcount_bits option, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 15/25] iotests: Add test for different refcount widths, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 16/25] progress: Allow regressing progress, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 18/25] qcow2: Use error_report() in qcow2_amend_options(), Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 14/25] qcow2: Allow creation with refcount order != 4, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 21/25] qcow2: Use intermediate helper CB for amend, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 19/25] qcow2: Use abort() instead of assert(false),
Max Reitz <=
- [Qemu-devel] [PATCH v7 17/25] block: Add opaque value to the amend CB, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 20/25] qcow2: Split upgrade/downgrade paths for amend, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 22/25] qcow2: Add function for refcount order amendment, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 23/25] qcow2: Invoke refcount order amendment function, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 24/25] qcow2: Point to amend function in check, Max Reitz, 2015/02/18
- [Qemu-devel] [PATCH v7 25/25] iotests: Extend test 112 for qemu-img amend, Max Reitz, 2015/02/18