changeset 478:69c11cd3bb1a

Add CDL to control debug prints.
author gthomas
date Sat, 04 Jan 2003 03:30:05 +0000
parents 658c231c7e71
children 64c3467211ac
files packages/devs/eth/intel/i82559/current/ChangeLog packages/devs/eth/intel/i82559/current/cdl/intel_i82559_eth_drivers.cdl packages/devs/eth/intel/i82559/current/src/if_i82559.c
diffstat 3 files changed, 16 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/eth/intel/i82559/current/ChangeLog
+++ b/packages/devs/eth/intel/i82559/current/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-03  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/if_i82559.c: 
+	* cdl/intel_i82559_eth_drivers.cdl: Allow finer control over
+	debug (chatter) by making control booldata.
+
 2002-12-17  Mark Salter  <msalter@redhat.com>
 
 	* src/if_i82559.c (CYGHWR_DEVS_ETH_INTEL_I82559_ENDIAN_NEUTRAL_IO): New
--- a/packages/devs/eth/intel/i82559/current/cdl/intel_i82559_eth_drivers.cdl
+++ b/packages/devs/eth/intel/i82559/current/cdl/intel_i82559_eth_drivers.cdl
@@ -9,6 +9,7 @@
 ## -------------------------------------------
 ## This file is part of eCos, the Embedded Configurable Operating System.
 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+## Copyright (C) 2003 Gary Thomas
 ##
 ## eCos is free software; you can redistribute it and/or modify it under
 ## the terms of the GNU General Public License as published by the Free
@@ -76,13 +77,16 @@ cdl_package CYGPKG_DEVS_ETH_INTEL_I82559
 
     cdl_option CYGDBG_DEVS_ETH_INTEL_I82559_CHATTER {
 	display "Prints ethernet device status info during startup"
+        flavor        booldata
 	default_value 0
 	description   "
-	    The ethernet device initialization code can print lots of info
+	    Definining this will cause the ethernet device initialization code 
+            to print lots of info
 	    to confirm that it has found the devices on the PCI bus, read
 	    the MAC address from EEPROM correctly, and so on, and also
 	    displays the mode (10/100MHz, half/full duplex) of the
-	    connection."
+	    connection.  If the value is set higher than one then
+            additional information about each packet sent will be printed."
     }
 
     cdl_option CYGNUM_DEVS_ETH_INTEL_I82559_DEV_COUNT {
--- a/packages/devs/eth/intel/i82559/current/src/if_i82559.c
+++ b/packages/devs/eth/intel/i82559/current/src/if_i82559.c
@@ -9,7 +9,7 @@
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-// Copyright (C) 2002 Gary Thomas
+// Copyright (C) 2002, 2003 Gary Thomas
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -220,9 +220,11 @@
 // ------------------------------------------------------------------------
 
 #ifdef CYGDBG_DEVS_ETH_INTEL_I82559_CHATTER
-#define notDEBUG_82559 // This one prints stuff as packets come and go
 #define DEBUG          // Startup printing mainly
 #define DEBUG_EE       // Some EEPROM specific retries &c
+#if (CYGDBG_DEVS_ETH_INTEL_I82559_CHATTER > 1)
+#define DEBUG_82559 // This one prints stuff as packets come and go
+#endif
 #endif
 
 #ifdef CYGDBG_USE_ASSERTS