Thread (7 messages) flat view 7 messages, 2 authors, 2012-06-13

Re: [PATCH net-next v3 3/3] 6lowpan: remove excessive argument in pr_debug

From: Joe Perches <joe@perches.com>
Date: 2012-06-09 19:37:43

On Sat, 2012-06-09 at 19:13 +0400, Alexander Smirnov wrote:
Remove excessive __func__ argument in pr_debug function.
Hello Alexander.

trivial comments below:
quoted hunk ↗ jump to hunk
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
quoted hunk ↗ jump to hunk
@@ -240,7 +240,7 @@ lowpan_uncompress_addr(struct sk_buff *skb, struct in6_addr *ipaddr,
 		lowpan_uip_ds6_set_addr_iid(ipaddr, lladdr);
 	}
 
-	pr_debug("(%s): uncompressing %d + %d => ", __func__, prefcount,
+	pr_debug("uncompressing %d + %d => ", prefcount,
 								postcount);
It'd be nicer to move the second argument as well.

	pr_debug("uncompressing %d + %d => ", prefcount, postcount);
[]
quoted hunk ↗ jump to hunk
@@ -543,7 +541,7 @@ static int lowpan_header_create(struct sk_buff *skb,
 			hc06_ptr += 16;
 		}
 	} else {
-		pr_debug("(%s): destination address is unicast: ", __func__);
+		pr_debug("destination address is unicast: ");
 		/* TODO: context lookup */
 		if (is_addr_link_local(&hdr->daddr)) {
 			pr_debug("destination address is link-local\n");
This doesn't really look correct.  Should this be newline terminated?

[]
quoted hunk ↗ jump to hunk
@@ -894,14 +890,14 @@ lowpan_process_data(struct sk_buff *skb)
 	/* check for Multicast Compression */
 	if (iphc1 & LOWPAN_IPHC_M) {
 		if (iphc1 & LOWPAN_IPHC_DAC) {
-			pr_debug("(%s): destination address context-based "
-				 "multicast compression\n", __func__);
+			pr_debug("destination address context-based "
+				 "multicast compression\n");
Please coalesce format strings.

			pr_debug("destination address context-based multicast compression\n");
[]
+			pr_debug("destination address non-context-based"
+				 " multicast compression\n");
etc...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help