diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-12 16:14:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-12 16:14:11 +0000 |
commit | bc09324617545ba7d1b35c7405378a00d77310e5 (patch) | |
tree | b8dd10f522ca7c442672b7482a7b7e4b86d9c95d /ttcp | |
parent | new file (diff) | |
download | network-demos-bc09324617545ba7d1b35c7405378a00d77310e5.tar.bz2 |
Added code to turn on debug.
Diffstat (limited to 'ttcp')
-rw-r--r-- | ttcp/init.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ttcp/init.c b/ttcp/init.c index e3fdd99..ccdace0 100644 --- a/ttcp/init.c +++ b/ttcp/init.c @@ -15,7 +15,6 @@ #include "../usercfg.h" -/*#define TRACE_SCC1 1 */ #include <bsp.h> #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER @@ -96,6 +95,18 @@ Init (rtems_task_argument ignored) #endif rtems_panic ("Can't attach Ethernet driver.\n"); +#if (defined (TRACE_NETWORK_DRIVER)) + /* + * Turn on debugging + */ + puts( "Enabling debug mode of KA9Q" ); + if (rtems_ka9q_execute_command ("trace rtems input <stdout>") + || rtems_ka9q_execute_command ("trace rtems output <stdout>") + || rtems_ka9q_execute_command ("trace rtems ascii <stdout>")) + rtems_panic ("Can't set tracing for Ethernet driver.\n"); +#endif + + /* * Configure the driver */ |