From patchwork Mon Aug 4 09:46:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weilong Chen X-Patchwork-Id: 34824 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 751BF21F5F for ; Mon, 4 Aug 2014 09:47:14 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id w10sf43843899pde.7 for ; Mon, 04 Aug 2014 02:47:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=f3+jtbTdRwxos8jBeA5OsmQPui62aLWC0CSo8gvs2Mk=; b=Qn8VUpNzxIgbEsArLk0vWOX66T6uUB4MRfU4uxblq1aCi2AdtWQfrXTTuy3qdsJcUy 92JYoC1N66BGWcGRi8OJFoZf+vn33xhdap+419EW7a46H03cIgKeCA+AcG9jaFPB5r8v d6HRPZZ6NQeiE4olWVwP0TJfO8quMmgoE2raK4Q5PDjoD7Ul167DV8lnrhOWj2NJAL9p ozs8f2sHfD3YYK4KCGhk8N35+BsVRr//J+YtF0BjoGcVQVDjTHK3hPkmwfN9omZ4kO5x jkVuAj4sukN+k44ku9vLTbNlqTufbsZD6PorLUKZW+yxEwmNmMdWEoJ8zgUrik78Rb8e 3qGQ== X-Gm-Message-State: ALoCoQlWLjBRvz0lwIOwo97MAunRFke8VdHhghEireTRdQsn4ZW43UqWEcrmD/CLrWsT79v/m4oJ X-Received: by 10.68.135.99 with SMTP id pr3mr1859512pbb.9.1407145633802; Mon, 04 Aug 2014 02:47:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.113 with SMTP id l104ls2124727qga.61.gmail; Mon, 04 Aug 2014 02:47:13 -0700 (PDT) X-Received: by 10.52.163.229 with SMTP id yl5mr405570vdb.79.1407145633614; Mon, 04 Aug 2014 02:47:13 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id ab11si11593095vec.98.2014.08.04.02.47.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 02:47:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hy4so10758692vcb.27 for ; Mon, 04 Aug 2014 02:47:13 -0700 (PDT) X-Received: by 10.220.74.10 with SMTP id s10mr778114vcj.61.1407145633531; Mon, 04 Aug 2014 02:47:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp291318vcb; Mon, 4 Aug 2014 02:47:13 -0700 (PDT) X-Received: by 10.140.94.197 with SMTP id g63mr23392782qge.90.1407145633059; Mon, 04 Aug 2014 02:47:13 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id w5si19994456qcz.40.2014.08.04.02.47.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 04 Aug 2014 02:47:13 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XEErI-0004yO-1z; Mon, 04 Aug 2014 09:47:12 +0000 Received: from mail-pd0-f172.google.com ([209.85.192.172]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XEErB-0004yG-Ay for lng-odp@lists.linaro.org; Mon, 04 Aug 2014 09:47:05 +0000 Received: by mail-pd0-f172.google.com with SMTP id ft15so9402155pdb.3 for ; Mon, 04 Aug 2014 02:46:59 -0700 (PDT) X-Received: by 10.66.157.40 with SMTP id wj8mr13024368pab.42.1407145619528; Mon, 04 Aug 2014 02:46:59 -0700 (PDT) Received: from localhost.localdomain ([183.247.163.231]) by mx.google.com with ESMTPSA id ez1sm16863547pbd.91.2014.08.04.02.46.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 02:46:59 -0700 (PDT) From: Weilong Chen To: lng-odp@lists.linaro.org Date: Mon, 4 Aug 2014 17:46:24 +0800 Message-Id: <1407145584-30710-1-git-send-email-weilong.chen@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: patch Subject: [lng-odp] [PATCH] Fix comment for odp_generator X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: weilong.chen@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This patch fix a comment error, and remove the print message of the flood mode. Signed-off-by: Weilong Chen Acked-by: Maxim Uvarov --- example/generator/odp_generator.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index e4a72fa..6aa27f7 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -341,12 +341,7 @@ static void *gen_send_thread(void *arg) thr, counters.seq, counters.seq%0xffff); /* TODO use odp timer */ usleep(args->appl.interval * 1000); - } else { - /* TODO maybe need a rating control */ - /* flood mode use '\r' instead of '\n' */ - printf(" [%02i] send pkt no:%ju seq %ju\r", - thr, counters.seq, counters.seq%0xffff); - } + } if (args->appl.number != -1 && counters.seq >= (unsigned int)args->appl.number) { break; @@ -366,9 +361,9 @@ static void *gen_send_thread(void *arg) /* print info */ if (args->appl.mode == APPL_MODE_UDP) { - printf(" [%02i] total send:%ju\n", thr, counters.seq); + printf(" [%02i] total send: %ju\n", thr, counters.seq); } else if (args->appl.mode == APPL_MODE_PING) { - printf(" [%02i] total send:%ju,total receiver %ju\n", + printf(" [%02i] total send: %ju total receive: %ju\n", thr, counters.seq, counters.icmp); } return arg;