gatchat: Use hexdump format for HDLC debug messages

This commit is contained in:
Marcel Holtmann 2011-08-09 19:18:14 -07:00
parent 4b76ec7159
commit e35a577f80
1 changed files with 5 additions and 4 deletions

View File

@ -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);