Print the warning when the format is not correct. Signed-off-by: Wei Yang <weiyang@xxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html