Date: Sun, 15 Jul 2012 22:05:38 +0000 From: gmiller@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r239442 - in soc2012/gmiller/locking-head: . lib/libwitness Message-ID: <20120715220538.54D221065673@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gmiller Date: Sun Jul 15 22:05:38 2012 New Revision: 239442 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=239442 Log: r239383@FreeBSD-dev: root | 2012-07-13 16:44:37 -0500 Remove intrusive debugging code from libwitness. Modified: soc2012/gmiller/locking-head/ (props changed) soc2012/gmiller/locking-head/lib/libwitness/lists.c soc2012/gmiller/locking-head/lib/libwitness/witness.h Modified: soc2012/gmiller/locking-head/lib/libwitness/lists.c ============================================================================== --- soc2012/gmiller/locking-head/lib/libwitness/lists.c Sun Jul 15 22:05:22 2012 (r239441) +++ soc2012/gmiller/locking-head/lib/libwitness/lists.c Sun Jul 15 22:05:38 2012 (r239442) @@ -30,19 +30,6 @@ static _Thread_local SLIST_HEAD(lock_head, lock_entry) lock_head = SLIST_HEAD_INITIALIZER(lock_head); -// XXX: temporary debugging code -static void -dump_locks(void) { - struct lock_entry *entry; - int count = 1; - - SLIST_FOREACH(entry, &lock_head, lock_next) { - printf("[%d] %p\n", count++, entry->lock); - } - - puts(""); -} - void add_lock(void *lock) { @@ -59,9 +46,6 @@ if (next != NULL && insert_lock(entry, next) < 0) { log_reversal(entry, next); } - - printf("inserted lock %p\n", lock); - dump_locks(); } void @@ -78,7 +62,4 @@ break; } } - - printf("removed lock %p\n", lock); - dump_locks(); } Modified: soc2012/gmiller/locking-head/lib/libwitness/witness.h ============================================================================== --- soc2012/gmiller/locking-head/lib/libwitness/witness.h Sun Jul 15 22:05:22 2012 (r239441) +++ soc2012/gmiller/locking-head/lib/libwitness/witness.h Sun Jul 15 22:05:38 2012 (r239442) @@ -29,7 +29,6 @@ #include <pthread.h> #include <pthread_np.h> -#include <stdio.h> #include <stdlib.h> struct lock_entry {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120715220538.54D221065673>