summaryrefslogtreecommitdiffstats
path: root/gatchat
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-08-09 19:18:14 -0700
committerMarcel Holtmann <marcel@holtmann.org>2011-08-09 19:18:14 -0700
commite35a577f8054ff5753a2e056c89377a6ca035889 (patch)
treec84f00b5031431fb001ef9d82ad86568b97fd5c2 /gatchat
parent4b76ec7159795d7b32f2355cb584b229abc65077 (diff)
downloadofono-e35a577f8054ff5753a2e056c89377a6ca035889.tar.bz2
gatchat: Use hexdump format for HDLC debug messages
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gathdlc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c
index 53dd1fb5..f50c1f5c 100644
--- a/gatchat/gathdlc.c
+++ b/gatchat/gathdlc.c
@@ -89,12 +89,13 @@ static inline void hdlc_record(GAtHDLC *hdlc, gboolean in,
unsigned char id;
int err;
- g_at_util_debug_dump(in, data, length, hdlc->debugf, hdlc->debug_data);
-
- if (hdlc->record_fd < 0)
+ if (len == 0)
return;
- if (len == 0)
+ g_at_util_debug_hexdump(in, data, length,
+ hdlc->debugf, hdlc->debug_data);
+
+ if (hdlc->record_fd < 0)
return;
gettimeofday(&now, NULL);