You don't use the return value from the function. You should probably test for errors so you don't end up printing random stuff into the mac address.