cli: use nm_utils_hwaddr_ntoa() from libnm-util

This commit is contained in:
Jiří Klimeš
2011-12-09 13:47:06 +01:00
parent 607cbffed2
commit bed4d15339
2 changed files with 11 additions and 13 deletions

View File

@@ -829,9 +829,7 @@ check_bt_compatible (NMDeviceBt *device, NMConnection *connection, GError **erro
device_hw_str = nm_device_bt_get_hw_address (device);
str = g_strdup_printf ("%02X:%02X:%02X:%02X:%02X:%02X",
array->data[0], array->data[1], array->data[2],
array->data[3], array->data[4], array->data[5]);
str = nm_utils_hwaddr_ntoa (array->data, ARPHRD_ETHER);
addr_match = !strcmp (device_hw_str, str);
g_free (str);