mirror of git://git.sysmocom.de/ofono
gatchat: Abort hexdump helper when no debug function is specified
This commit is contained in:
parent
6351cb1e4e
commit
4dc66b9cb0
|
@ -140,6 +140,9 @@ void g_at_util_debug_hexdump(gboolean in, const unsigned char *buf, gsize len,
|
||||||
char str[68];
|
char str[68];
|
||||||
gsize i;
|
gsize i;
|
||||||
|
|
||||||
|
if (debugf == NULL || !len)
|
||||||
|
return;
|
||||||
|
|
||||||
str[0] = in ? '<' : '>';
|
str[0] = in ? '<' : '>';
|
||||||
|
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
|
|
Loading…
Reference in New Issue