mirror of git://git.sysmocom.de/ofono
gatchat: Fix extra empty line issue with hexdump helper
This commit is contained in:
parent
e35a577f80
commit
6351cb1e4e
|
@ -157,7 +157,7 @@ void g_at_util_debug_hexdump(gboolean in, const unsigned char *buf, gsize len,
|
|||
}
|
||||
}
|
||||
|
||||
if ((i + 1) % 16 > 0) {
|
||||
if (i % 16 > 0) {
|
||||
gsize j;
|
||||
for (j = (i % 16); j < 16; j++) {
|
||||
str[(j * 3) + 1] = ' ';
|
||||
|
|
Loading…
Reference in New Issue