From: Max Reitz Date: Mon, 27 Jul 2015 15:51:34 +0000 (+0200) Subject: qcow2: Use abort() instead of assert(false) X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=164e0f89cc825bf2a83b20451643db333d2891a7;p=people%2Fliuw%2Flibxenctrl-split%2Fqemu-xen.git qcow2: Use abort() instead of assert(false) Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia Signed-off-by: Kevin Wolf --- diff --git a/block/qcow2.c b/block/qcow2.c index 01b20d91c..381b4f7ed 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++;