projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b76ec7
)
gatchat: Use hexdump format for HDLC debug messages
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 10 Aug 2011 02:18:14 +0000
(19:18 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 10 Aug 2011 02:18:14 +0000
(19:18 -0700)
gatchat/gathdlc.c
patch
|
blob
|
history
diff --git
a/gatchat/gathdlc.c
b/gatchat/gathdlc.c
index
53dd1fb
..
f50c1f5
100644
(file)
--- 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);