]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/lockdep: clearer log messages
authorJohn Spray <john.spray@redhat.com>
Thu, 8 Dec 2016 15:52:29 +0000 (15:52 +0000)
committerJohn Spray <john.spray@redhat.com>
Wed, 8 Mar 2017 10:20:55 +0000 (10:20 +0000)
Previously these were contextless "using id..." messages with
no indication of what subsystem the message came from.

Signed-off-by: John Spray <john.spray@redhat.com>
src/common/lockdep.cc

index b921eb64a55d5a695252ab5a100d342b737fefbb..1f52e5656542730e28769aa2e6f90087c81143d2 100644 (file)
@@ -146,7 +146,7 @@ int lockdep_get_free_id(void)
     int tmp = last_freed_id;
     last_freed_id = -1;
     free_ids[tmp/8] &= 255 - (1 << (tmp % 8));
-    lockdep_dout(1) << "reusing last freed id " << tmp << dendl;
+    lockdep_dout(1) << "lockdep reusing last freed id " << tmp << dendl;
     return tmp;
   }
   
@@ -157,7 +157,7 @@ int lockdep_get_free_id(void)
       for (int j = 0; j < 8; ++j) {
         if (free_ids[i] & (1 << j)) {
           free_ids[i] &= 255 - (1 << j);
-          lockdep_dout(1) << "using id " << i * 8 + j << dendl;
+          lockdep_dout(1) << "lockdep using id " << i * 8 + j << dendl;
           return i * 8 + j;
         }
       }