diff options
Diffstat (limited to 'openbsc/src/gprs/gtphub_sock.c')
-rw-r--r-- | openbsc/src/gprs/gtphub_sock.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gtphub_sock.c b/openbsc/src/gprs/gtphub_sock.c index 699672e46..60bebaaeb 100644 --- a/openbsc/src/gprs/gtphub_sock.c +++ b/openbsc/src/gprs/gtphub_sock.c @@ -50,8 +50,10 @@ int gtphub_write(const struct osmo_fd *to, LOG(LOGL_ERROR, "sent(%d) != data_len(%d)\n", (int)sent, (int)buf_len); else - LOG(LOGL_DEBUG, "Sent %d: %s\n", - (int)sent, osmo_hexdump(buf, sent)); + LOG(LOGL_DEBUG, "Sent %d: %s%s\n", + (int)sent, + osmo_hexdump(buf, sent > 1000? 1000 : sent), + sent > 1000 ? "..." : ""); return 0; } |