diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-04 22:59:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-04 22:59:30 +0000 |
commit | 83705d736e7e957752226de8c2165aa9ff4deeaa (patch) | |
tree | 35763ac9f5bbba31583e967fb7e199f854b50928 /nuttx/net/netdev-register.c | |
parent | d71296f49b301d3ca8edcc6e9b79dd6b23a01c31 (diff) | |
download | px4-nuttx-83705d736e7e957752226de8c2165aa9ff4deeaa.tar.gz px4-nuttx-83705d736e7e957752226de8c2165aa9ff4deeaa.tar.bz2 px4-nuttx-83705d736e7e957752226de8c2165aa9ff4deeaa.zip |
Integrating with DM320
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@368 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/netdev-register.c')
-rw-r--r-- | nuttx/net/netdev-register.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/net/netdev-register.c b/nuttx/net/netdev-register.c index 736c5e782..d2beefd9f 100644 --- a/nuttx/net/netdev-register.c +++ b/nuttx/net/netdev-register.c @@ -47,6 +47,7 @@ #include <assert.h> #include <string.h> #include <errno.h> +#include <debug.h> #include <net/uip/uip-arch.h> @@ -139,9 +140,15 @@ int netdev_register(FAR struct uip_driver_s *dev) dev->flink = g_netdevices; g_netdevices = dev; netdev_semgive(); + + lldbg("Registered MAC: %02x:%02x:%02x:%02x:%02x:%02x as dev: %s\n", + dev->d_mac.addr[0], dev->d_mac.addr[1], dev->d_mac.addr[2], + dev->d_mac.addr[3], dev->d_mac.addr[4], dev->d_mac.addr[5], + dev->d_ifname); + return OK; } - return ERROR; + return -EINVAL; } #endif /* CONFIG_NET && CONFIG_NSOCKET_DESCRIPTORS */ |