Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2012 20:00:11 +0000
From:      gmiller@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r238501 - in soc2012/gmiller/locking-head: . lib/libwitness
Message-ID:  <20120628200013.92E4D106567F@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120628200013.92E4D106567F>