All of lore.kernel.org
 help / color / mirror / Atom feed
* debugging frustration
@ 2005-02-14 14:20 Arthur Bergman
  2005-02-14 14:24 ` Mark Williamson
  0 siblings, 1 reply; 6+ messages in thread
From: Arthur Bergman @ 2005-02-14 14:20 UTC (permalink / raw)
  To: xen-devel

In an effort to hide debugging messages, I noticed that xfrd.c undefs 
DEBUG after setting it to DEBUG 1. Unless there is something really 
fundamental about the gcc c preprocessor I don't know about, this 
doesn't seem very helpful. Below is a patch that lets the outside user 
set debugging instead of hardcoding it.

Also, is there a reason that not having DEBUG in turns dprintf into do 
{} while(0) instead of just turning into ""

Cheers
Arthur

-----
CTO @ Fotango Ltd
+447834716919
http://www.fotango.com/


--- xfrd.c.old  2005-02-14 14:17:49.000000000 +0000
+++ xfrd.c      2005-02-14 14:17:58.000000000 +0000
@@ -49,8 +49,6 @@
  #include "select.h"

  #define MODULE_NAME "XFRD"
-#define DEBUG 1
-#undef DEBUG
  #include "debug.h"

  /*



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-14 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-14 14:20 debugging frustration Arthur Bergman
2005-02-14 14:24 ` Mark Williamson
2005-02-14 15:03   ` Anthony Liguori
2005-02-14 16:14     ` Luciano Miguel Ferreira Rocha
2005-02-14 16:38       ` Mark Williamson
2005-02-14 16:41       ` Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.