Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / common / debug.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3 /*
4  * Ceph - scalable distributed file system
5  *
6  * Copyright (C) 2004-2011 New Dream Network
7  *
8  * This is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License version 2.1, as published by the Free Software
11  * Foundation.  See file COPYING.
12  *
13  */
14
15 #ifndef CEPH_DEBUG_H
16 #define CEPH_DEBUG_H
17
18 #include "common/dout.h"
19
20 /* Global version of the stuff in common/dout.h
21  */
22
23 #define dout(v) ldout((dout_context), v)
24
25 #define pdout(v, p) lpdout((dout_context), v, p)
26
27 #define dlog_p(sub, v) ldlog_p1((dout_context), sub, v)
28
29 #define generic_dout(v) lgeneric_dout((dout_context), v)
30
31 #define derr lderr((dout_context))
32
33 #define generic_derr lgeneric_derr((dout_context))
34
35 #endif