diff options
Diffstat (limited to 'apps/examples/igmp')
-rw-r--r-- | apps/examples/igmp/igmp.c | 10 | ||||
-rw-r--r-- | apps/examples/igmp/igmp.h | 10 |
2 files changed, 6 insertions, 14 deletions
diff --git a/apps/examples/igmp/igmp.c b/apps/examples/igmp/igmp.c index c8d7cdb87..32879f046 100644 --- a/apps/examples/igmp/igmp.c +++ b/apps/examples/igmp/igmp.c @@ -94,7 +94,7 @@ int igmp_main(int argc, char *argv[]) uint8_t mac[IFHWADDRLEN]; #endif - message("Configuring Ethernet...\n"); + printf("Configuring Ethernet...\n"); /* Many embedded network interfaces must have a software assigned MAC */ @@ -126,23 +126,23 @@ int igmp_main(int argc, char *argv[]) /* Not much of a test for now */ /* Join the group */ - message("Join group...\n"); + printf("Join group...\n"); addr.s_addr = HTONL(CONFIG_EXAMPLES_IGMP_GRPADDR); ipmsfilter("eth0", &addr, MCAST_INCLUDE); /* Wait a while */ - message("Wait for timeout...\n"); + printf("Wait for timeout...\n"); sleep(5); /* Leave the group */ - message("Leave group...\n"); + printf("Leave group...\n"); ipmsfilter("eth0", &addr, MCAST_EXCLUDE); /* Wait a while */ sleep(5); - message("Exiting...\n"); + printf("Exiting...\n"); return 0; } diff --git a/apps/examples/igmp/igmp.h b/apps/examples/igmp/igmp.h index 5e1fa8d95..284f5288c 100644 --- a/apps/examples/igmp/igmp.h +++ b/apps/examples/igmp/igmp.h @@ -43,17 +43,9 @@ #include <debug.h> /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ -/* Used syslog() so that there is no confusion from buffered IO */ - -#ifdef CONFIG_CPP_HAVE_VARARGS -# define message(...) syslog(__VA_ARGS__) -#else -# define message syslog -#endif - /**************************************************************************** * Public Function Prototypes ****************************************************************************/ |