summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-27 17:57:23 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-27 17:57:23 -0400
commita406e6f599e2a9be7cca5d9f2fca859f9cd7cd9c (patch)
tree3e8e002bd9a346e3a2a71e3b1771da1980f53747 /libgpsd_core.c
parent0ec066db26bdc4ed9b3ea97a29b4193bff8776d4 (diff)
downloadgpsd-a406e6f599e2a9be7cca5d9f2fca859f9cd7cd9c.tar.gz
Verbosity reduction.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 7cd11cb9..ba3ceebb 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -52,10 +52,10 @@ int gpsd_switch_driver(struct gps_device_t *session, char *type_name)
const struct gps_type_t **dp;
bool identified = (session->device_type != NULL);
- gpsd_report(LOG_PROG, "switch_driver(%s) called...\n", type_name);
if (identified && strcmp(session->device_type->type_name, type_name) == 0)
return 0;
+ gpsd_report(LOG_PROG, "switch_driver(%s) called...\n", type_name);
/*@ -compmempass @*/
for (dp = gpsd_drivers; *dp; dp++)
if (strcmp((*dp)->type_name, type_name) == 0) {