From 118f0349cc1770dcce1815daab18d216c97f35dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Benedikt=20Kr=C3=BCger?= Date: Tue, 26 Jul 2011 14:22:37 +0200 Subject: [PATCH] shell test --- drivers/net/mmnif.c | 4 ---- kernel/shell.c | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index d1409ba0..f7b3cb27 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -1403,10 +1403,6 @@ int mmnif_close() * - this will stop the polling thread i.e. */ - /* resources has to be freed here - * will be added soon ;) - */ - active = FALSE; #ifdef WIN32 free(mmnif->tx_buff); diff --git a/kernel/shell.c b/kernel/shell.c index 0162f68a..1b314545 100644 --- a/kernel/shell.c +++ b/kernel/shell.c @@ -12,9 +12,13 @@ static Client cli; static int iamsrv = 0; +char shellbuffer[512]; + #include +#define SHELLDEBUGPRINTF(x,...) ksprintf(shellbuffer,x,##__VA_ARGS__);shelldebugprint(shellbuffer); + void shelldebugprint(char* x) { kprintf("debugprinting"); @@ -66,6 +70,9 @@ void shell_init(int srv_or_cli) cli_init(&cli); while (cli_ConnectTo(&cli,"192.168.0.1",23,0)); sleep(1); + } + sleep(3); + SHELLDEBUGPRINTF("I AM CORE NO. %d",srv_or_cli); }