[PATCH v2 2/3] netlink: print all NETLINK_KOBJECT_UEVENT buffer in string

JingPiao Chen chenjingpiao at gmail.com
Tue Aug 8 14:39:21 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 2cc7967..c8ac58b 100644
--- a/netlink.c
+++ b/netlink.c
@@ -443,6 +443,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