changeset 777:8feb558ccf09

synch: print synch type in deadlock error message Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sun, 11 Aug 2019 13:18:07 -0400
parents 1448eb85990b
children 1b8e4069b32f
files synch.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/synch.c	Sun Aug 11 12:53:07 2019 -0400
+++ b/synch.c	Sun Aug 11 13:18:07 2019 -0400
@@ -241,7 +241,8 @@
 			"holding it:");
 	else
 		cmn_err(CE_CRIT, "lockdep: but the thread is already "
-			"holding a lock of same class:");
+			"holding a %s of same class:",
+			synch_type_str(held->type));
 
 	print_held_locks(held);