Skip to contentSkip to conversation

Remove out of date message in appletalk printk

PATCH Applied Dave Jones 2 participants 2 messages Jun 6, 2012 – Jun 7, 2012

Subsystems (2)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

I accidentally triggered this printk, which amused me for a few moments. Given we're post 2.2, we could just -EACCES, but does anyone even care about Appletalk now ? I figure it's better to leave sleeping dogs lie, and just update the message.

net/appletalk/ddp.c +1 -3
index 0301b32..12e9100 100644
@@ -1208,9 +1208,7 @@ static int atalk_connect(struct socket *sock, struct sockaddr *uaddr,
 	if (addr->sat_addr.s_node == ATADDR_BCAST &&
 	    !sock_flag(sk, SOCK_BROADCAST)) {
 #if 1
-		printk(KERN_WARNING "%s is broken and did not set "
-				    "SO_BROADCAST. It will break when 2.2 is "
-				    "released.\n",
+		printk(KERN_WARNING "%s is broken and did not set SO_BROADCAST.\n",
 			current->comm);
 #else
 		return -EACCES;
maintainer Applied
#1 lore raw

From: Dave Jones <[email protected]>
Date: Wed, 6 Jun 2012 14:45:59 -0400

Quoted 5 lines

I accidentally triggered this printk, which amused me for a few moments. Given we're post 2.2, we could just -EACCES, but does anyone even care about Appletalk now ? I figure it's better to leave sleeping dogs lie, and just update the message.

Applied, but I made a few refinements. I made it use pr_warn() and also prefixed the message with "atalk_connect: " so if someone sees this it's easier to figure out where it's coming from.

Thanks.