diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-28 17:23:55 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-28 17:23:55 -0700 |
commit | c79595e6cc0044d09432aab19b26c3ac4d256595 (patch) | |
tree | 73fc18c92e283cdf41a2238ff02ecee536994a2a /firmware/microblaze/lib/print_mac_addr.c | |
parent | a7c230cb1f97b452da027d5baa71891f2066d430 (diff) | |
download | uhd-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.c | 10 |
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]); + } } |