[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 21/75: Drop spurious debugging or outdated changes
From: |
Samuel Thibault |
Subject: |
[hurd] 21/75: Drop spurious debugging or outdated changes |
Date: |
Thu, 14 Jan 2016 01:04:07 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit 9d34d52455c458ac6471121ba225491e5119f712
Author: Samuel Thibault <address@hidden>
Date: Sun Nov 29 13:41:34 2015 +0100
Drop spurious debugging or outdated changes
---
libnetfs/dir-lookup.c | 1 -
libports/get-right.c | 2 +-
libports/manage-multithread.c | 1 -
libstore/argp.c | 2 --
libstore/open.c | 2 --
libthreads/cprocs.c | 1 -
libthreads/cthread_internals.h | 2 +-
libthreads/cthreads.c | 20 --------------------
8 files changed, 2 insertions(+), 29 deletions(-)
diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 4849547..7ca526b 100644
--- a/libnetfs/dir-lookup.c
+++ b/libnetfs/dir-lookup.c
@@ -460,7 +460,6 @@ netfs_S_dir_lookup (struct protid *diruser,
error = errno;
*retry_port = ports_get_right (newpi);
- fprintf (stderr, "dereference a port\n");
ports_port_deref (newpi);
out:
diff --git a/libports/get-right.c b/libports/get-right.c
index c8a6434..8681f46 100644
--- a/libports/get-right.c
+++ b/libports/get-right.c
@@ -49,9 +49,9 @@ ports_get_right (void *port)
pi->port_right,
MACH_MSG_TYPE_MAKE_SEND_ONCE,
&foo);
+ assert_perror (err);
if (foo != MACH_PORT_NULL)
mach_port_deallocate (mach_task_self (), foo);
- assert_perror (err);
}
pthread_mutex_unlock (&_ports_lock);
return pi->port_right;
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c
index 971a867..60743d9 100644
--- a/libports/manage-multithread.c
+++ b/libports/manage-multithread.c
@@ -18,7 +18,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#include <stdio.h>
#include "ports.h"
#include <assert.h>
#include <error.h>
diff --git a/libstore/argp.c b/libstore/argp.c
index 9c66628..73146a8 100644
--- a/libstore/argp.c
+++ b/libstore/argp.c
@@ -174,8 +174,6 @@ store_parsed_open (const struct store_parsed *parsed, int
flags,
const struct store_class *type = parsed->type;
if (type->open)
{
- fprintf (stderr, "device type: %s\n", type->name);
- fflush (stderr);
if (parsed->name_prefix)
/* If there's a name prefix, we prefix any names we open with that
and a colon. */
diff --git a/libstore/open.c b/libstore/open.c
index b0c3c7e..5c00e10 100644
--- a/libstore/open.c
+++ b/libstore/open.c
@@ -18,7 +18,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
-#include <stdio.h>
#include <fcntl.h>
#include <hurd.h>
@@ -38,7 +37,6 @@ store_open (const char *name, int flags,
int open_flags = (flags & STORE_HARD_READONLY) ? O_RDONLY : O_RDWR;
file_t node = file_name_lookup (name, open_flags, 0);
- fprintf (stderr, "store_open: %s\n", name);
if (node == MACH_PORT_NULL && !(flags & STORE_HARD_READONLY)
&& (errno == EACCES || errno == EROFS))
{
diff --git a/libthreads/cprocs.c b/libthreads/cprocs.c
index 812e84f..5459d7d 100644
--- a/libthreads/cprocs.c
+++ b/libthreads/cprocs.c
@@ -234,7 +234,6 @@
#include <mach/message.h>
#include <hurd/threadvar.h> /* GNU */
#include <assert.h>
-#include <stdio.h>
/*
* Port_entry's are used by cthread_mach_msg to store information
diff --git a/libthreads/cthread_internals.h b/libthreads/cthread_internals.h
index 5345611..81e3b91 100644
--- a/libthreads/cthread_internals.h
+++ b/libthreads/cthread_internals.h
@@ -237,7 +237,7 @@ extern void mach_error();
#ifndef ASSERT
#define ASSERT(x)
#endif
-#define TRACE(x) do {x; fflush (stdout);} while (0)
+#define TRACE(x)
/*
* What we do to yield the processor:
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c
index bd2ab9e..1361b8b 100644
--- a/libthreads/cthreads.c
+++ b/libthreads/cthreads.c
@@ -262,26 +262,6 @@ cthread_init(void)
*/
vm_offset_t (*_cthread_init_routine)(void) = cthread_init;
-#define __libc_tsd_get(KEY) (__test_libc_tsd_##KEY)
-#define __libc_tsd_set(KEY, VALUE) (__test_libc_tsd_##KEY = (VALUE))
-#define _NL_CURRENT_LOCALE ((__locale_t) __libc_tsd_get (LOCALE))
-__thread void *__test_libc_tsd_LOCALE;
-//extern struct __locale_struct _nl_global_locale attribute_hidden;
-locale_t
-test_uselocale (locale_t newloc)
-{
- locale_t oldloc = _NL_CURRENT_LOCALE;
- return oldloc;
-
-// if (newloc != NULL)
-// {
-// const locale_t locobj
-// = newloc == LC_GLOBAL_LOCALE ? &_nl_global_locale : newloc;
-// __libc_tsd_set (LOCALE, locobj);
-// }
-//
-// return oldloc == &_nl_global_locale ? LC_GLOBAL_LOCALE : oldloc;
-}
/*
* Procedure invoked at the base of each cthread.
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 23/75: Add missing menus, (continued)
- [hurd] 23/75: Add missing menus, Samuel Thibault, 2016/01/13
- [hurd] 20/75: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into dde, Samuel Thibault, 2016/01/13
- [hurd] 12/75: Merge branch 'dde' of ssh://git.savannah.gnu.org/srv/git/hurd/incubator into dde, Samuel Thibault, 2016/01/13
- [hurd] 02/75: libtrivfs: remove deprecated static class vectors, Samuel Thibault, 2016/01/13
- [hurd] 05/75: random: improve error handling, Samuel Thibault, 2016/01/13
- [hurd] 01/75: pfinet: fix sanity check at translator startup time, Samuel Thibault, 2016/01/13
- [hurd] 22/75: Fix undefined reference, Samuel Thibault, 2016/01/13
- [hurd] 24/75: Use -L instead of -Wl,-rpath-link, Samuel Thibault, 2016/01/13
- [hurd] 26/75: libihash: fix fast insertion corner case, Samuel Thibault, 2016/01/13
- [hurd] 25/75: libihash: fix ill-devised locp lookup interface, Samuel Thibault, 2016/01/13
- [hurd] 21/75: Drop spurious debugging or outdated changes,
Samuel Thibault <=
- [hurd] 14/75: Add devnode translator, Samuel Thibault, 2016/01/13
- [hurd] 30/75: ext2fs: improve the block cache, Samuel Thibault, 2016/01/13
- [hurd] 28/75: libihash: fix item insertion, Samuel Thibault, 2016/01/13
- [hurd] 66/75: Make private variables static, Samuel Thibault, 2016/01/13
- [hurd] 32/75: ext2fs: keep list of reusable disk cache entries, Samuel Thibault, 2016/01/13
- [hurd] 33/75: libdiskfs: use ihash for the node cache, Samuel Thibault, 2016/01/13
- [hurd] 31/75: ext2fs: disable block cache debugging by default, Samuel Thibault, 2016/01/13
- [hurd] 27/75: libihash: generalize the interface to support non-integer keys, Samuel Thibault, 2016/01/13
- [hurd] 68/75: Fix build with perl >= 5.22, Samuel Thibault, 2016/01/13
- [hurd] 29/75: libihash: provide a general purpose hash algorithm, Samuel Thibault, 2016/01/13