Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757269AbcLPSxw (ORCPT ); Fri, 16 Dec 2016 13:53:52 -0500 Received: from forward3m.cmail.yandex.net ([5.255.216.21]:36714 "EHLO forward3m.cmail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbcLPSxr (ORCPT ); Fri, 16 Dec 2016 13:53:47 -0500 Authentication-Results: mxback3g.mail.yandex.net; dkim=pass header.i=@yandex.com.tr From: Ozgur Karatas Envelope-From: mueddib@yandex.com.tr To: Joe Perches , David Miller Cc: linux-kernel , netdev In-Reply-To: <1481913321.29291.89.camel@perches.com> References: <5194151481912505@web1g.yandex.ru> <1481913321.29291.89.camel@perches.com> Subject: Re: [PATCH 1/1] tools: net: bpf_dbg.c fixed keyboard typo MIME-Version: 1.0 Message-Id: <5201261481914424@web9g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 16 Dec 2016 20:53:44 +0200 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 33 16.12.2016, 20:35, "Joe Perches" : > On Fri, 2016-12-16 at 20:21 +0200, Ozgur Karatas wrote: >>  This patch fixed to keyboard typo, brackets not closed. >>  I think, it should be close to parenthes. > > No. > > Please compile and test your patches on your own system > before you send them. Dear Perches, I have already tested and it was not a part of the code anyway. if there is no parentheses, the code works incorrectly and give a error. I'm sorry, have a little problem with my english but "line_string" variables would not equal NULL, 10. So the code it skips it and runs to "bpf_prog_len". If it should be equal "0 &&" and already be completed (>) right? if (strlen(line_string) > 0 && (line = strtoul(line_string, NULL, 10)) < bpf_prog_len) Testing: $ make M=tools/ tools//Makefile:6: scripts/Makefile.include: No such file or directory $ cp tools/scripts/Makefile.include scripts/Makefile $ make M=tools/ Building modules, stage 2. MODPOST 0 modules I try to module (insmod) and worked. Regards, ~Ozgur