From patchwork Thu Jul 9 14:00:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balakrishna Garapati X-Patchwork-Id: 50970 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 41950228E5 for ; Thu, 9 Jul 2015 14:01:17 +0000 (UTC) Received: by lbbpo10 with SMTP id po10sf32723853lbb.1 for ; Thu, 09 Jul 2015 07:01:16 -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=fFW9wcJ9qPbIGQWdiRjf//HUN7wcY1BFaCWxjCga4tI=; b=RdZ7x/mUPHQH+CS9p8E5e+WlOY7jGCqMohzRon3YIgQP/JDHzS8zvYBqqFpKy2AwWw Bu2qoFV1YnEcAiSS02RLUpA76Bd9BctpNKO1HMh28k6VMGa16QgaiVR1NyQG5Dr7IOYV hJXH1q5QVRpb0wOVefRbfl21g1NVSMPu1aCggpB0mexVU4ZaxTwfZzqpD3xo9wn2lr5t W8D9aQtocTj8w3qhcpIlnEwcb7EGIIpFC9Xaxra9e6I3DFreZkerZP/4n6NaZvr7qF3P 2rZb2OiF//iZe9WyDZPh5uEQlgbZRgz9cE/yx7XEzDtMnLJjvz1SHVjo5KnSIg2eQ6Gk klVw== X-Gm-Message-State: ALoCoQnBa3nZAKWhqFIluiSIN9MY8FaePxst9fzEY4C4m26rymUKrj0tCPdVNJTkGiSBCAOeD/hM X-Received: by 10.112.54.166 with SMTP id k6mr8112305lbp.0.1436450476223; Thu, 09 Jul 2015 07:01:16 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.10.74 with SMTP id g10ls49618lab.92.gmail; Thu, 09 Jul 2015 07:01:15 -0700 (PDT) X-Received: by 10.152.9.137 with SMTP id z9mr15157890laa.68.1436450475937; Thu, 09 Jul 2015 07:01:15 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id r3si4587315lal.22.2015.07.09.07.01.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 07:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbpo10 with SMTP id po10so75662583lbb.3 for ; Thu, 09 Jul 2015 07:01:15 -0700 (PDT) X-Received: by 10.112.42.50 with SMTP id k18mr13824323lbl.76.1436450475595; Thu, 09 Jul 2015 07:01:15 -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 hn6csp687740lbb; Thu, 9 Jul 2015 07:01:14 -0700 (PDT) X-Received: by 10.140.233.70 with SMTP id e67mr24876254qhc.7.1436450474331; Thu, 09 Jul 2015 07:01:14 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d11si6644468qhc.108.2015.07.09.07.01.13; Thu, 09 Jul 2015 07:01:14 -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 0FA8861FC4; Thu, 9 Jul 2015 14:01:13 +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, TVD_SPACE_RATIO, 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 86F4761FBF; Thu, 9 Jul 2015 14:01:09 +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 72C9A61834; Thu, 9 Jul 2015 14:01:06 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 81DD961834 for ; Thu, 9 Jul 2015 14:01:03 +0000 (UTC) Received: by lagx9 with SMTP id x9so246822470lag.1 for ; Thu, 09 Jul 2015 07:01:02 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr14864783lak.117.1436450462471; Thu, 09 Jul 2015 07:01:02 -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 c2sm1438281laa.43.2015.07.09.07.01.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 07:01:01 -0700 (PDT) From: "Balakrishna.Garapati" To: stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 9 Jul 2015 16:00:51 +0200 Message-Id: <1436450451-21925-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] [PATCHV1] 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.217.178 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 --- 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); }