common/lockdep: clearer log messages

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>
This commit is contained in:
John Spray 2016-12-08 15:52:29 +00:00
parent 059a877f05
commit 050dc5cc03

View 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;
}
}