]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/BackTrace.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / common / BackTrace.h
index 372788e6b64e63a304dd5abb5292ff655e24b513..5cb73d47bd6c4cce893b2d90d09486c3e6658f81 100644 (file)
@@ -1,3 +1,6 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
 #ifndef CEPH_BACKTRACE_H
 #define CEPH_BACKTRACE_H
 
@@ -10,6 +13,8 @@
 
 namespace ceph {
 
+class Formatter;
+
 struct BackTrace {
   const static int max = 100;
 
@@ -36,6 +41,7 @@ struct BackTrace {
   const BackTrace& operator=(const BackTrace& other);
 
   void print(std::ostream& out) const;
+  void dump(Formatter *f) const;
 };
 
 inline std::ostream& operator<<(std::ostream& out, const BackTrace& bt) {