From patchwork Thu Jul 9 14:37:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balakrishna Garapati X-Patchwork-Id: 50971 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 96B2E228E5 for ; Thu, 9 Jul 2015 14:38:09 +0000 (UTC) Received: by wgbbj7 with SMTP id bj7sf80006315wgb.2 for ; Thu, 09 Jul 2015 07:38:08 -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:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=9t2YkEx7Sn7RbuCO3CaCirQGI7NmhLsNa3Za//iP0jg=; b=Rw/pd70vwQYBbaRM9lhi0lYaGuVpl5rxndfIPnwyNHaYsCWjTb3f07CGIRb/aGtuO2 TqUYT5LxQQ6TAFWwOtpdhnVTcv4EFTa8KqOTKxWWMKM/KdMg6VWcuh+v9sSZcFlG0WbR oU3lOnU7t0+1wXE0KcjmRiZ99uaMk3udb4//2P8zCQxnF0p/ZiSrULNiBuHMF4wRurqP vngmcZjOv++4tf3yMLmrPqdSmJVgZm+RXEQDPuyG1SPk7QSPeYO7nQpAc4APNQc/amgW I9ojsukgJOX/0uJKVJ3tNtBZ39uL7varw4xtEiIkXk3TNob8cd58TgX1V0ekJJ3YiMHg UvpA== X-Gm-Message-State: ALoCoQmRuTWFftvjqipUksIv3f7+LbHToWleNFy+sA6aPvZ78yAohC9wTBmJyNbPSq/ZS18kWr7F X-Received: by 10.112.142.67 with SMTP id ru3mr8011865lbb.1.1436452688753; Thu, 09 Jul 2015 07:38:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.2 with SMTP id ls2ls1112191lac.51.gmail; Thu, 09 Jul 2015 07:38:08 -0700 (PDT) X-Received: by 10.152.37.37 with SMTP id v5mr14936521laj.11.1436452688606; Thu, 09 Jul 2015 07:38:08 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id u2si4645529laz.114.2015.07.09.07.38.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 07:38:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagx9 with SMTP id x9so247547862lag.1 for ; Thu, 09 Jul 2015 07:38:08 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr15549305lbc.32.1436452688493; Thu, 09 Jul 2015 07:38:08 -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.112.108.230 with SMTP id hn6csp709547lbb; Thu, 9 Jul 2015 07:38:07 -0700 (PDT) X-Received: by 10.140.89.100 with SMTP id u91mr24694830qgd.15.1436452687214; Thu, 09 Jul 2015 07:38:07 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 16si6272820qkt.59.2015.07.09.07.38.06; Thu, 09 Jul 2015 07:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 08BC561FD2; Thu, 9 Jul 2015 14:38:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id BE90961DBD; Thu, 9 Jul 2015 14:38:02 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1AC4E61DCE; Thu, 9 Jul 2015 14:38:01 +0000 (UTC) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by lists.linaro.org (Postfix) with ESMTPS id BA38061D89 for ; Thu, 9 Jul 2015 14:37:56 +0000 (UTC) Received: by lbbpo10 with SMTP id po10so76331233lbb.3 for ; Thu, 09 Jul 2015 07:37:55 -0700 (PDT) X-Received: by 10.152.37.67 with SMTP id w3mr15204259laj.123.1436452674783; Thu, 09 Jul 2015 07:37:54 -0700 (PDT) Received: from elxahtkds32.localdomain (host-95-204-222-149.mobileonline.telia.com. [95.204.222.149]) by smtp.gmail.com with ESMTPSA id j1sm1563857lbc.15.2015.07.09.07.37.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 07:37:53 -0700 (PDT) From: "Balakrishna.Garapati" To: stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 9 Jul 2015 16:37:46 +0200 Message-Id: <1436452666-27134-1-git-send-email-balakrishna.garapati@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2] example:generator:print correct appl_mode X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balakrishna.garapati@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.215.41 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 Signed-off-by: Balakrishna.Garapati --- since v1: changed the commit message example/generator/odp_generator.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 0ff264c..15de035 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -991,9 +991,11 @@ static void print_info(char *progname, appl_args_t *appl_args) printf("\n" "Mode: "); if (appl_args->mode == 0) - PRINT_APPL_MODE(0); + PRINT_APPL_MODE(APPL_MODE_UDP); + else if (appl_args->mode == 1) + PRINT_APPL_MODE(APPL_MODE_PING); else - PRINT_APPL_MODE(0); + PRINT_APPL_MODE(APPL_MODE_RCV); printf("\n\n"); fflush(NULL); }