From owner-svn-soc-all@FreeBSD.ORG Thu Jun 28 20:00:14 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 92E4D106567F for ; Thu, 28 Jun 2012 20:00:11 +0000 (UTC) (envelope-from gmiller@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Thu, 28 Jun 2012 20:00:11 +0000 Date: Thu, 28 Jun 2012 20:00:11 +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: <20120628200013.92E4D106567F@hub.freebsd.org> Cc: Subject: socsvn commit: r238501 - 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: Thu, 28 Jun 2012 20:00:14 -0000 Author: gmiller Date: Thu Jun 28 20:00:11 2012 New Revision: 238501 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=238501 Log: r238482@FreeBSD-dev: root | 2012-06-20 00:01:09 -0500 Cut back on debug output a bit and adjust indentation style. Modified: soc2012/gmiller/locking-head/ (props changed) soc2012/gmiller/locking-head/lib/libwitness/wrappers.c Modified: soc2012/gmiller/locking-head/lib/libwitness/wrappers.c ============================================================================== --- soc2012/gmiller/locking-head/lib/libwitness/wrappers.c Thu Jun 28 19:55:46 2012 (r238500) +++ soc2012/gmiller/locking-head/lib/libwitness/wrappers.c Thu Jun 28 20:00:11 2012 (r238501) @@ -38,25 +38,21 @@ int pthread_mutex_lock(pthread_mutex_t *mutex) { - int ret; + int ret; - puts("pthread_mutex_lock()"); + ret = _pthread_mutex_lock(mutex); + add_lock(mutex); - ret = _pthread_mutex_lock(mutex); - add_lock(mutex); - - return ret; + return ret; } int pthread_mutex_unlock(pthread_mutex_t *mutex) { - int ret; - - puts("pthread_mutex_unlock()"); + int ret; - ret = _pthread_mutex_unlock(mutex); - remove_lock(mutex); + ret = _pthread_mutex_unlock(mutex); + remove_lock(mutex); - return ret; + return ret; }