[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
too many warning messages from gnumach
From: |
Da Zheng |
Subject: |
too many warning messages from gnumach |
Date: |
Tue, 16 Mar 2010 12:48:15 +0800 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
Hello,
I now use the gnumach from the master branch in the git repository for
development. After I built and reboot my machine, I saw a few warning messages
printed on the screen: task xxxx deallocating an invalid port xx, most probably
a bug. What's worse, when I ran vim, there are too many such messages printed on
the screen and I cannot even use vim.
I think it's better to not print the message as done in the patch below. I
suppose the message is for debugging, but gnumach shouldn't print the message by
default.
diff --git a/ipc/mach_port.c b/ipc/mach_port.c
index d902e22..cefe0e4 100644
--- a/ipc/mach_port.c
+++ b/ipc/mach_port.c
@@ -605,7 +605,6 @@ mach_port_deallocate(
kr = ipc_right_lookup_write(space, name, &entry);
if (kr != KERN_SUCCESS) {
if (name != MACH_PORT_NULL && name != MACH_PORT_DEAD) {
- printf("task %p deallocating an invalid port %u, most
probably a bug.\n",
current_task(), name);
if (mach_port_deallocate_debug)
SoftDebugger("mach_port_deallocate");
}
Best regards,
Zheng Da
- too many warning messages from gnumach,
Da Zheng <=
- Re: too many warning messages from gnumach, Samuel Thibault, 2010/03/16
- Re: too many warning messages from gnumach, Da Zheng, 2010/03/16
- Re: too many warning messages from gnumach, Da Zheng, 2010/03/16
- Re: too many warning messages from gnumach, Da Zheng, 2010/03/17
- Re: too many warning messages from gnumach, Samuel Thibault, 2010/03/17
- Re: too many warning messages from gnumach, Da Zheng, 2010/03/17