From: Sage Weil Date: Mon, 27 Jun 2016 18:34:31 +0000 (-0700) Subject: include/assert: define ceph_abort_msg(cct, msg) X-Git-Tag: ses5-milestone5~516^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23d6438f1253b593dd9a0e909e2ccbd045e168b8;p=ceph.git include/assert: define ceph_abort_msg(cct, msg) Abort with an error string. Signed-off-by: Sage Weil --- diff --git a/src/include/assert.h b/src/include/assert.h index 4131dff54fa..08a72c28ee8 100644 --- a/src/include/assert.h +++ b/src/include/assert.h @@ -121,6 +121,11 @@ using namespace ceph; */ #define ceph_abort() abort() +#define ceph_abort_msg(cct, msg) { \ + lgeneric_derr(cct) << "abort: " << msg << dendl; \ + abort(); \ + } + #endif // wipe any prior assert definition