diff options
author | kib <kib@FreeBSD.org> | 2009-08-14 10:57:57 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-08-14 10:57:57 +0000 |
commit | 3b08eab1e99efe2e436d6dbbc736048b10d4c9e2 (patch) | |
tree | 6a2e9fd4fd3f90f45a1ca02d141c4a76542ceae9 | |
parent | a8c207161240494e4fae070c8b48c710024a623d (diff) | |
download | FreeBSD-src-3b08eab1e99efe2e436d6dbbc736048b10d4c9e2.zip FreeBSD-src-3b08eab1e99efe2e436d6dbbc736048b10d4c9e2.tar.gz |
Add the address of the lock to the KTR_LOCK trace.
Tested by: pho
Approved by: re (rwatson)
-rw-r--r-- | sys/sys/lock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h index 9e47ab4..01c70ff 100644 --- a/sys/sys/lock.h +++ b/sys/sys/lock.h @@ -155,16 +155,16 @@ struct lock_class { #define LOCK_LOG_LOCK(opname, lo, flags, recurse, file, line) do { \ if (LOCK_LOG_TEST((lo), (flags))) \ - CTR5(KTR_LOCK, opname " (%s) %s r = %d at %s:%d", \ + CTR6(KTR_LOCK, opname " (%s) %s %p r = %d at %s:%d", \ LOCK_CLASS(lo)->lc_name, (lo)->lo_name, \ - (u_int)(recurse), (file), (line)); \ + (lo), (u_int)(recurse), (file), (line)); \ } while (0) #define LOCK_LOG_TRY(opname, lo, flags, result, file, line) do { \ if (LOCK_LOG_TEST((lo), (flags))) \ - CTR5(KTR_LOCK, "TRY_" opname " (%s) %s result=%d at %s:%d",\ + CTR6(KTR_LOCK, "TRY_" opname " (%s) %s %p result=%d at %s:%d",\ LOCK_CLASS(lo)->lc_name, (lo)->lo_name, \ - (u_int)(result), (file), (line)); \ + (lo), (u_int)(result), (file), (line)); \ } while (0) #define LOCK_LOG_INIT(lo, flags) do { \ |