There are some messages printed directly to stdout, let's convert them to dbg().
Signed-off-by: Jan Safranek <[email protected]> Acked-by: Dhaval Giani <[email protected]> --- cgrulesengd.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cgrulesengd.c b/cgrulesengd.c index f7abc8f..20d710d 100644 --- a/cgrulesengd.c +++ b/cgrulesengd.c @@ -313,7 +313,7 @@ int cgre_create_netlink_socket_process_msg() */ sk_nl = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR); if (sk_nl == -1) { - printf("socket sk_nl error"); + dbg("socket sk_nl error"); return rc; } @@ -329,14 +329,14 @@ int cgre_create_netlink_socket_process_msg() err = bind(sk_nl, (struct sockaddr *)&my_nla, sizeof(my_nla)); if (err == -1) { - printf("binding sk_nl error"); + dbg("binding sk_nl error"); goto close_and_exit; } nl_hdr = (struct nlmsghdr *)buff; cn_hdr = (struct cn_msg *)NLMSG_DATA(nl_hdr); mcop_msg = (enum proc_cn_mcast_op*)&cn_hdr->data[0]; - printf("sending proc connector: PROC_CN_MCAST_LISTEN... "); + dbg("sending proc connector: PROC_CN_MCAST_LISTEN... "); memset(buff, 0, sizeof(buff)); *mcop_msg = PROC_CN_MCAST_LISTEN; @@ -353,13 +353,13 @@ int cgre_create_netlink_socket_process_msg() cn_hdr->seq = 0; cn_hdr->ack = 0; cn_hdr->len = sizeof(enum proc_cn_mcast_op); - printf("sending netlink message len=%d, cn_msg len=%d\n", + dbg("sending netlink message len=%d, cn_msg len=%d\n", nl_hdr->nlmsg_len, (int) sizeof(struct cn_msg)); if (send(sk_nl, nl_hdr, nl_hdr->nlmsg_len, 0) != nl_hdr->nlmsg_len) { - printf("failed to send proc connector mcast ctl op!\n"); + dbg("failed to send proc connector mcast ctl op!\n"); goto close_and_exit; } - printf("sent\n"); + dbg("sent\n"); for(memset(buff, 0, sizeof(buff)), from_nla_len = sizeof(from_nla); ; memset(buff, 0, sizeof(buff)), from_nla_len = sizeof(from_nla)) { ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
