diff options
Diffstat (limited to 'src/mm-port-serial-gps.c')
-rw-r--r-- | src/mm-port-serial-gps.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/mm-port-serial-gps.c b/src/mm-port-serial-gps.c index b316d05eb..3bc5f4b80 100644 --- a/src/mm-port-serial-gps.c +++ b/src/mm-port-serial-gps.c @@ -134,39 +134,6 @@ parse_response (MMPortSerial *port, /*****************************************************************************/ -static void -debug_log (MMPortSerial *port, const char *prefix, const char *buf, gsize len) -{ - static GString *debug = NULL; - const char *s; - - if (!debug) - debug = g_string_sized_new (256); - - g_string_append (debug, prefix); - g_string_append (debug, " '"); - - s = buf; - while (len--) { - if (g_ascii_isprint (*s)) - g_string_append_c (debug, *s); - else if (*s == '\r') - g_string_append (debug, "<CR>"); - else if (*s == '\n') - g_string_append (debug, "<LF>"); - else - g_string_append_printf (debug, "\\%u", (guint8) (*s & 0xFF)); - - s++; - } - - g_string_append_c (debug, '\''); - mm_dbg ("(%s): %s", mm_port_get_device (MM_PORT (port)), debug->str); - g_string_truncate (debug, 0); -} - -/*****************************************************************************/ - MMPortSerialGps * mm_port_serial_gps_new (const char *name) { @@ -217,5 +184,4 @@ mm_port_serial_gps_class_init (MMPortSerialGpsClass *klass) object_class->finalize = finalize; serial_class->parse_response = parse_response; - serial_class->debug_log = debug_log; } |