summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-19 22:18:47 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-21 16:23:06 +0200
commita1fd752bd86668e2500d3ebda815672ae81c171a (patch)
tree9dc3aa745d961e23ead046e53bd8cfbfe6c4830b
parent820cab40ae4203fc590de66a2666bffb82614136 (diff)
downloadconnman-a1fd752bd86668e2500d3ebda815672ae81c171a.tar.gz
connman-a1fd752bd86668e2500d3ebda815672ae81c171a.tar.bz2
connman-a1fd752bd86668e2500d3ebda815672ae81c171a.zip
client: Reduce technology logging
Reduce technology logging messages and modify the remaining one. Also free the DBusError.
-rw-r--r--client/technology.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/client/technology.c b/client/technology.c
index 1832a1d5..b5ed90d6 100644
--- a/client/technology.c
+++ b/client/technology.c
@@ -81,8 +81,6 @@ void match_tech_name(DBusMessage *message, char *tech_name,
name = strrchr(path, '/') + 1;
tech->name = g_strdup(name);
if (g_strcmp0(tech_name, tech->name) == 0) {
- printf(" %-20s { %s } exists\n", tech->name,
- tech->path);
break;
} else
dbus_message_iter_next(&array);
@@ -124,9 +122,6 @@ int scan_technology(DBusConnection *connection, DBusMessage *message,
match_tech_name(message, tech, &technology);
if (g_strcmp0(tech, technology.name) != 0) {
- fprintf(stderr, "%s does not exist on the system\n", tech);
- fprintf(stderr, "Use the 'tech' command to find available "
- "technologies on your system.\n");
return -ENXIO;
}
@@ -142,12 +137,12 @@ int scan_technology(DBusConnection *connection, DBusMessage *message,
&err);
if (dbus_error_is_set(&err)) {
- printf("Scan failed; error: '%s'\n", err.message);
- return -EINVAL;
+ printf("Error '%s' %s\n", technology.path, err.message);
+ dbus_error_free(&err);
+ return -ENXIO;
}
dbus_message_unref(message_send);
- printf("Scanned for new services on %s.\n", technology.name);
g_free(technology.name);
g_free(technology.path);