]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
logging: debug.h: minor cleanup
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 8 Dec 2010 07:17:48 +0000 (23:17 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 8 Dec 2010 07:17:48 +0000 (23:17 -0800)
Don't put std::ostream into the global namespace. Copyright update.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/common/debug.h

index d11004efa61334217ba08ee2c4e2aeefd2131dae..40cf0e5f9e80075ee12c828a69295922d5c7e4f3 100644 (file)
@@ -3,7 +3,8 @@
 /*
  * Ceph - scalable distributed file system
  *
- * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
+ * Copyright (C) 2004-2010 Sage Weil <sage@newdream.net>
+ * Copyright (C) 2010 Dreamhost
  *
  * This is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
 #include "Clock.h"
 
 #include <iosfwd>
-using std::ostream;
 
 // the streams
-extern ostream *_dout;
+extern std::ostream *_dout;
 
 extern Mutex _dout_lock;
 
@@ -56,12 +56,11 @@ static inline void _dout_end_line() {
 // intentionally conflict with endl
 class _bad_endl_use_dendl_t { public: _bad_endl_use_dendl_t(int) {} };
 static const _bad_endl_use_dendl_t endl = 0;
-inline ostream& operator<<(ostream& out, _bad_endl_use_dendl_t) {
+inline std::ostream& operator<<(std::ostream& out, _bad_endl_use_dendl_t) {
   assert(0 && "you are using the wrong endl.. use std::endl or dendl");
   return out;
 }
 
-
 // generic macros
 #define generic_dout(x) do { if ((x) <= g_conf.debug) {\
   _dout_begin_line(x); *_dout