From a19e1d6f61bf7303cdd611b5fb50c149a6ed12ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Wed, 26 Jun 2013 18:51:22 +0200 Subject: [PATCH] platform: make log_* consistent --- src/platform/nm-platform.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index c167c8cc32..628a60749d 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -1542,21 +1542,27 @@ nm_platform_route_flush (int ifindex) /******************************************************************/ static void -log_link_added (NMPlatform *p, int ifindex, NMPlatformLink *info, gpointer user_data) +log_link (NMPlatformLink *device, const char *change_type) { - debug ("signal: link address: '%s' (%d)", info->name, ifindex); + debug ("signal: link %s: %s (%d)", change_type, device->name, device->ifindex); } static void -log_link_changed (NMPlatform *p, int ifindex, NMPlatformLink *info, gpointer user_data) +log_link_added (NMPlatform *p, int ifindex, NMPlatformLink *device, gpointer user_data) { - debug ("signal: link changed: '%s' (%d)", info->name, ifindex); + log_link (device, "added"); } static void -log_link_removed (NMPlatform *p, int ifindex, NMPlatformLink *info, gpointer user_data) +log_link_changed (NMPlatform *p, int ifindex, NMPlatformLink *device, gpointer user_data) { - debug ("signal: link removed: '%s' (%d)", info->name, ifindex); + log_link (device, "changed"); +} + +static void +log_link_removed (NMPlatform *p, int ifindex, NMPlatformLink *device, gpointer user_data) +{ + log_link (device, "removed"); } static void