net: fix printing of struct linger's field names
* net.c: Include "print_fields.h". (print_linger): Print fields of struct linger using PRINT_FIELD_D.
This commit is contained in:
parent
657b04b83b
commit
6314e1d0f1
8
net.c
8
net.c
@ -30,6 +30,8 @@
|
||||
*/
|
||||
|
||||
#include "defs.h"
|
||||
#include "print_fields.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/uio.h>
|
||||
@ -497,9 +499,9 @@ print_linger(struct tcb *const tcp, const kernel_ulong_t addr, const int len)
|
||||
return;
|
||||
}
|
||||
|
||||
tprintf("{onoff=%d, linger=%d}",
|
||||
linger.l_onoff,
|
||||
linger.l_linger);
|
||||
PRINT_FIELD_D("{", linger, l_onoff);
|
||||
PRINT_FIELD_D(", ", linger, l_linger);
|
||||
tprints("}");
|
||||
}
|
||||
|
||||
#ifdef SO_PEERCRED
|
||||
|
Loading…
x
Reference in New Issue
Block a user