qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PULL 28/48] qcow2: Use abort() instead of assert(false)


From: Kevin Wolf
Subject: [Qemu-block] [PULL 28/48] qcow2: Use abort() instead of assert(false)
Date: Fri, 18 Dec 2015 16:07:34 +0100

From: Max Reitz <address@hidden>

Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
 block/qcow2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/qcow2.c b/block/qcow2.c
index 01b20d9..381b4f7 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -2998,9 +2998,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.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]