diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-08 08:33:00 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-08 08:33:00 -0600 |
commit | fdb1d0a4df496e7a3232a950d5c72231363cf67a (patch) | |
tree | 5d18c1b4f9241f17396ec663ff4425bf21e6b57a /apps/examples/igmp | |
parent | 1753a0251a941fa4d1a5b95aec631209e9957670 (diff) | |
download | nuttx-fdb1d0a4df496e7a3232a950d5c72231363cf67a.tar.gz nuttx-fdb1d0a4df496e7a3232a950d5c72231363cf67a.tar.bz2 nuttx-fdb1d0a4df496e7a3232a950d5c72231363cf67a.zip |
Remove non-portable references to syslog from apps/examples
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 ****************************************************************************/ |