summaryrefslogtreecommitdiffstats
path: root/src/common/LogEntry.cc
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2016-11-22 05:37:31 +0100
committerSage Weil <sage@redhat.com>2016-11-22 05:37:31 +0100
commit61fca96c29104683da74c913cfbf4005ba95cf77 (patch)
treefb949e5731066442cc63071afba371dcf7e2c86e /src/common/LogEntry.cc
parentMerge pull request #11993 from ceph/wip-17809 (diff)
downloadceph-61fca96c29104683da74c913cfbf4005ba95cf77.tar.xz
ceph-61fca96c29104683da74c913cfbf4005ba95cf77.zip
assert(0) -> ceph_abort()
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/common/LogEntry.cc')
-rw-r--r--src/common/LogEntry.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/LogEntry.cc b/src/common/LogEntry.cc
index 23e360f34c4..ece56951cf5 100644
--- a/src/common/LogEntry.cc
+++ b/src/common/LogEntry.cc
@@ -54,7 +54,7 @@ int clog_type_to_syslog_level(clog_type t)
case CLOG_SEC:
return LOG_CRIT;
default:
- assert(0);
+ ceph_abort();
return 0;
}
}
@@ -164,7 +164,7 @@ string clog_type_to_string(clog_type t)
case CLOG_SEC:
return "crit";
default:
- assert(0);
+ ceph_abort();
return 0;
}
}