Skip to contentSkip to conversation

netfilter: simplify warning message

PATCH In review Eric Leblond 2 participants 4 messages Jan 15, 2010 – Jan 18, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netfilter: simplify warning message

This patch remove variable part from a debug message to have message concatenation from syslog.

---
 net/netfilter/nfnetlink_queue.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/netfilter/nfnetlink_queue.c +2 -2
index 7e3fa41..b5ed1f7 100644
@@ -414,8 +414,8 @@ nfqnl_enqueue_packet(struct nf_queue_entry *entry, unsigned int queuenum)
 		queue->queue_dropped++;
 		if (net_ratelimit())
 			  printk(KERN_WARNING "nf_queue: full at %d entries, "
-				 "dropping packets(s). Dropped: %d\n",
-				 queue->queue_total, queue->queue_dropped);
+				 "dropping packets(s).\n",
+				 queue->queue_total);
 		goto err_out_free_nskb;
 	}
 
Signature · 1 line
1.6.1
#1 lore raw
Quoted 2 lines · Eric Leblond

This patch remove variable part from a debug message to have message concatenation from syslog.

It also makes the message less informative, but OK, this information is not particulary important and available through proc anyways.

But I do need a Signed-off-by: line :)

#2 lore raw

PATCH 1/1 netfilter: simplify warning message

This patch remove variable part from a debug message to have message concatenation from syslog.

---
 net/netfilter/nfnetlink_queue.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/netfilter/nfnetlink_queue.c +2 -2
index 7e3fa41..b5ed1f7 100644
@@ -414,8 +414,8 @@ nfqnl_enqueue_packet(struct nf_queue_entry *entry, unsigned int queuenum)
 		queue->queue_dropped++;
 		if (net_ratelimit())
 			  printk(KERN_WARNING "nf_queue: full at %d entries, "
-				 "dropping packets(s). Dropped: %d\n",
-				 queue->queue_total, queue->queue_dropped);
+				 "dropping packets(s).\n",
+				 queue->queue_total);
 		goto err_out_free_nskb;
 	}
 
Signature · 1 line
1.6.1