aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/print_mac_addr.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-28 17:23:55 -0700
committerJosh Blum <josh@joshknows.com>2010-04-28 17:23:55 -0700
commitc79595e6cc0044d09432aab19b26c3ac4d256595 (patch)
tree73fc18c92e283cdf41a2238ff02ecee536994a2a /firmware/microblaze/lib/print_mac_addr.c
parenta7c230cb1f97b452da027d5baa71891f2066d430 (diff)
downloaduhd-c79595e6cc0044d09432aab19b26c3ac4d256595.tar.gz
uhd-c79595e6cc0044d09432aab19b26c3ac4d256595.tar.bz2
uhd-c79595e6cc0044d09432aab19b26c3ac4d256595.zip
removed some unused things like gpio from microblaze code
Diffstat (limited to 'firmware/microblaze/lib/print_mac_addr.c')
-rw-r--r--firmware/microblaze/lib/print_mac_addr.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/firmware/microblaze/lib/print_mac_addr.c b/firmware/microblaze/lib/print_mac_addr.c
index 838fd614a..475082325 100644
--- a/firmware/microblaze/lib/print_mac_addr.c
+++ b/firmware/microblaze/lib/print_mac_addr.c
@@ -20,11 +20,9 @@
void
print_mac_addr(const unsigned char addr[6])
{
- puthex8(addr[0]); putchar(':');
- puthex8(addr[1]); putchar(':');
- puthex8(addr[2]); putchar(':');
- puthex8(addr[3]); putchar(':');
- puthex8(addr[4]); putchar(':');
- puthex8(addr[5]);
+ for(size_t i = 0; i < 6; i++){
+ if(i) putchar(':');
+ puthex8(addr[i]);
+ }
}