[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 16/22] qcow2: Use abort() instead of assert(false
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v3 16/22] qcow2: Use abort() instead of assert(false) |
Date: |
Thu, 20 Nov 2014 18:06:32 +0100 |
Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
block/qcow2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/qcow2.c b/block/qcow2.c
index 4e19615..e8d54ab 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -2723,9 +2723,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++;
--
1.9.3
- [Qemu-devel] [PATCH v3 10/22] qcow2: refcount_order parameter for qcow2_create2, (continued)
- [Qemu-devel] [PATCH v3 10/22] qcow2: refcount_order parameter for qcow2_create2, Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 12/22] qcow2: Allow creation with refcount order != 4, Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 11/22] iotests: Prepare for refcount_width option, Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 13/22] progress: Allow regressing progress, Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 16/22] qcow2: Use abort() instead of assert(false),
Max Reitz <=
- [Qemu-devel] [PATCH v3 15/22] qcow2: Use error_report() in qcow2_amend_options(), Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 14/22] block: Add opaque value to the amend CB, Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 17/22] qcow2: Split upgrade/downgrade paths for amend, Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 18/22] qcow2: Use intermediate helper CB for amend, Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 19/22] qcow2: Add function for refcount order amendment, Max Reitz, 2014/11/20
- [Qemu-devel] [PATCH v3 20/22] qcow2: Invoke refcount order amendment function, Max Reitz, 2014/11/20