Commit ed65240a authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Cast to void* to print variable address.

parent 0f90a538
...@@ -446,7 +446,7 @@ netlink_talk(struct nlmsghdr *nh) ...@@ -446,7 +446,7 @@ netlink_talk(struct nlmsghdr *nh)
nh->nlmsg_seq = ++nl_command.seqno; nh->nlmsg_seq = ++nl_command.seqno;
kdebugf("Sending seqno %d from address %p (talk)\n", kdebugf("Sending seqno %d from address %p (talk)\n",
nl_command.seqno, &nl_command.seqno); nl_command.seqno, (void*)&nl_command.seqno);
rc = sendmsg(nl_command.sock, &msg, 0); rc = sendmsg(nl_command.sock, &msg, 0);
if(rc < 0 && (errno == EAGAIN || errno == EINTR)) { if(rc < 0 && (errno == EAGAIN || errno == EINTR)) {
...@@ -514,7 +514,7 @@ netlink_send_dump(int type, void *data, int len) { ...@@ -514,7 +514,7 @@ netlink_send_dump(int type, void *data, int len) {
buf.nh.nlmsg_len = NLMSG_LENGTH(len); buf.nh.nlmsg_len = NLMSG_LENGTH(len);
kdebugf("Sending seqno %d from address %p (dump)\n", kdebugf("Sending seqno %d from address %p (dump)\n",
nl_command.seqno, &nl_command.seqno); nl_command.seqno, (void*)&nl_command.seqno);
rc = sendmsg(nl_command.sock, &msg, 0); rc = sendmsg(nl_command.sock, &msg, 0);
if(rc < buf.nh.nlmsg_len) { if(rc < buf.nh.nlmsg_len) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment