aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/zpu/lib/print_addrs.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-07 11:51:31 -0800
committerJosh Blum <josh@joshknows.com>2011-01-07 11:51:31 -0800
commite0005a2a00b49b1c6802fd7e78e8f92ff22a6bce (patch)
tree6e2fcaa7c44648402d2ffcb830819d9d63d893a0 /firmware/zpu/lib/print_addrs.c
parentf879a50989a35a2ba4886630164d71353a560c2e (diff)
downloaduhd-e0005a2a00b49b1c6802fd7e78e8f92ff22a6bce.tar.gz
uhd-e0005a2a00b49b1c6802fd7e78e8f92ff22a6bce.tar.bz2
uhd-e0005a2a00b49b1c6802fd7e78e8f92ff22a6bce.zip
usrp2: tweaking firmware
added delay to the link up/down code to space out calls removed the pkt_ctrl init and just do it when the mode changes tweaked the addr printing
Diffstat (limited to 'firmware/zpu/lib/print_addrs.c')
-rw-r--r--firmware/zpu/lib/print_addrs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/zpu/lib/print_addrs.c b/firmware/zpu/lib/print_addrs.c
index 29601c47c..fa2a49fc3 100644
--- a/firmware/zpu/lib/print_addrs.c
+++ b/firmware/zpu/lib/print_addrs.c
@@ -18,15 +18,16 @@
#include "nonstdio.h"
void
-print_mac_addr(const unsigned char addr[6])
+print_mac_addr(const void *addr)
{
+ uint8_t *p = (uint8_t *)addr;
for(size_t i = 0; i < 6; i++){
if(i) putchar(':');
- puthex8(addr[i]);
+ puthex8(p[i]);
}
}
-void print_ip_addr(const void *t){
- uint8_t *p = (uint8_t *)t;
+void print_ip_addr(const void *addr){
+ uint8_t *p = (uint8_t *)addr;
printf("%d.%d.%d.%d", p[0], p[1], p[2], p[3]);
}