wifi: rename some AP debug dumping functions
authorDan Williams <dcbw@redhat.com>
Fri, 30 Sep 2011 17:34:17 +0000 (12:34 -0500)
committerDan Williams <dcbw@redhat.com>
Fri, 30 Sep 2011 17:34:17 +0000 (12:34 -0500)
src/nm-device-wifi.c
src/nm-wifi-ap.c
src/nm-wifi-ap.h

index 6fac0d0..41b1c17 100644 (file)
@@ -1690,7 +1690,7 @@ nm_device_wifi_get_address (NMDeviceWifi *self,
 }
 
 static void
-nm_device_wifi_ap_list_print (NMDeviceWifi *self)
+ap_list_dump (NMDeviceWifi *self)
 {
        NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE (self);
        GSList * elt;
@@ -1701,7 +1701,7 @@ nm_device_wifi_ap_list_print (NMDeviceWifi *self)
        nm_log_dbg (LOGD_WIFI_SCAN, "Current AP list:");
        for (elt = priv->ap_list; elt; elt = g_slist_next (elt), i++) {
                NMAccessPoint * ap = NM_AP (elt->data);
-               nm_ap_print_self (ap, "AP: ");
+               nm_ap_dump (ap, "List AP: ");
        }
        nm_log_dbg (LOGD_WIFI_SCAN, "Current AP list: done");
 }
@@ -2180,7 +2180,7 @@ supplicant_iface_scan_done_cb (NMSupplicantInterface *iface,
                 * happens when there are actual scan results to process.
                 */
                cull_scan_list (self);
-               nm_device_wifi_ap_list_print (self);
+               ap_list_dump (self);
        }
 #endif
 }
@@ -2421,7 +2421,7 @@ supplicant_iface_new_bss_cb (NMSupplicantInterface *iface,
 
        ap = nm_ap_new_from_properties (properties);
        if (ap) {
-               nm_ap_print_self (ap, "AP: ");
+               nm_ap_dump (ap, "New AP: ");
 
                /* Add the AP to the device's AP list */
                merge_scanned_ap (self, ap);
@@ -2430,7 +2430,7 @@ supplicant_iface_new_bss_cb (NMSupplicantInterface *iface,
                /* Remove outdated access points */
                cull_scan_list (self);
 
-               nm_device_wifi_ap_list_print (self);
+               ap_list_dump (self);
        } else {
                nm_log_warn (LOGD_WIFI_SCAN, "(%s): invalid AP properties received",
                             nm_device_get_iface (NM_DEVICE (self)));
index 93d012f..20af3e4 100644 (file)
@@ -751,8 +751,7 @@ error:
 #define MAC_ARG(x) ((guint8*)(x))[0],((guint8*)(x))[1],((guint8*)(x))[2],((guint8*)(x))[3],((guint8*)(x))[4],((guint8*)(x))[5]
 
 void
-nm_ap_print_self (NMAccessPoint *ap,
-                  const char * prefix)
+nm_ap_dump (NMAccessPoint *ap, const char *prefix)
 {
        NMAccessPointPrivate *priv;
 
index 61e5b3b..31100d3 100644 (file)
@@ -112,6 +112,6 @@ NMAccessPoint *     nm_ap_match_in_list (NMAccessPoint *find_ap,
                                          GSList *ap_list,
                                          gboolean strict_match);
 
-void                           nm_ap_print_self (NMAccessPoint *ap, const char * prefix);
+void                           nm_ap_dump (NMAccessPoint *ap, const char *prefix);
 
 #endif /* NM_ACCESS_POINT_H */