debugnet: Fix logging of frame length
MFC after: 1 week
(cherry picked from commit 6fe4d8395bc5ec51a5ec68b5f1176b4710676b7c)