]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: don't clobber log output stream
authorSage Weil <sage@newdream.net>
Wed, 25 Feb 2009 20:20:43 +0000 (12:20 -0800)
committerSage Weil <sage@newdream.net>
Wed, 25 Feb 2009 20:20:43 +0000 (12:20 -0800)
Don't print a null char pointer.

src/osd/OSD.cc

index 316fdf080a0fe44bfcc055e4f07494a15489c13d..4cfbbe3fe8eb4a340fe60249668d1cb4eb7ecd35 100644 (file)
@@ -354,7 +354,7 @@ int OSD::init()
   }
   
   // mount.
-  dout(2) << "mounting " << dev_path << " " << journal_name << dendl;
+  dout(2) << "mounting " << dev_path << " " << (journal_name ? journal_name : "(no journal)") << dendl;
   store = create_object_store(dev_path, journal_name);
   if (!store)
     return -ENODEV;