netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch net-next] pktgen: small code cleanup
@ 2014-04-02  8:24 Wei Yang
  2014-04-03 17:35 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Wei Yang @ 2014-04-02  8:24 UTC (permalink / raw)
  To: fan.du, netdev; +Cc: davem, Wei Yang

Print the warning when the format is not correct.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
---
 net/core/pktgen.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index fdac61c..89d33c2 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -1767,7 +1767,7 @@ static ssize_t pktgen_thread_write(struct file *file,
 	char *pg_result;
 
 	if (count < 1) {
-		//      sprintf(pg_result, "Wrong command format");
+		pr_warn("WARNING: Wrong command format in %s\n", __func__);
 		return -EINVAL;
 	}
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-04 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-02  8:24 [Patch net-next] pktgen: small code cleanup Wei Yang
2014-04-03 17:35 ` David Miller
2014-04-04 13:29   ` Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).