[PATCH 2/3] netlink: print all NETLINK_KOBJECT_UEVENT buffer in string
JingPiao Chen
chenjingpiao at gmail.com
Tue Jul 25 12:29:00 UTC 2017
* netlink.c (decode_netlink): Call printstrn
when family == NETLINK_KOBJECT_UEVENT.
---
netlink.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/netlink.c b/netlink.c
index a853fbd..aaa3e07 100644
--- a/netlink.c
+++ b/netlink.c
@@ -438,6 +438,12 @@ decode_netlink(struct tcb *const tcp,
kernel_ulong_t len)
{
const int family = get_fd_nl_family(tcp, fd);
+
+ if (family == NETLINK_KOBJECT_UEVENT) {
+ printstrn(tcp, addr, len);
+ return;
+ }
+
struct nlmsghdr nlmsghdr;
bool print_array = false;
unsigned int elt;
--
2.7.4
More information about the Strace-devel
mailing list