lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1396427091-8230-1-git-send-email-weiyang@linux.vnet.ibm.com>
Date:	Wed,  2 Apr 2014 16:24:51 +0800
From:	Wei Yang <weiyang@...ux.vnet.ibm.com>
To:	fan.du@...driver.com, netdev@...r.kernel.org
Cc:	davem@...emloft.net, Wei Yang <weiyang@...ux.vnet.ibm.com>
Subject: [Patch net-next] pktgen: small code cleanup

Print the warning when the format is not correct.

Signed-off-by: Wei Yang <weiyang@...ux.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

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ