netlink: fix a panic with verbose debugging printfs
While here improve general debugging of this function.
Fixes: 660bd40a598a498ad850911772fcff3f2511875a