From owner-svn-soc-all@FreeBSD.ORG Sun Jul 15 22:05:40 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 54D221065673 for ; Sun, 15 Jul 2012 22:05:38 +0000 (UTC) (envelope-from gmiller@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Sun, 15 Jul 2012 22:05:38 +0000 Date: Sun, 15 Jul 2012 22:05:38 +0000 From: gmiller@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120715220538.54D221065673@hub.freebsd.org> Cc: Subject: socsvn commit: r239442 - in soc2012/gmiller/locking-head: . lib/libwitness X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2012 22:05:40 -0000 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 #include -#include #include struct lock_entry {