From patchwork Fri Jul 21 07:23:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Bodireddy, Bhanuprakash" X-Patchwork-Id: 791940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xDMwN04kQz9s1h for ; Fri, 21 Jul 2017 17:34:28 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id D0CA4900; Fri, 21 Jul 2017 07:33:04 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id B10F5891 for ; Fri, 21 Jul 2017 07:33:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 4EE14AC for ; Fri, 21 Jul 2017 07:33:01 +0000 (UTC) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jul 2017 00:32:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,388,1496127600"; d="scan'208";a="130057027" Received: from silpixa00393942.ir.intel.com (HELO silpixa00393942.ger.corp.intel.com) ([10.237.223.42]) by fmsmga006.fm.intel.com with ESMTP; 21 Jul 2017 00:32:56 -0700 From: Bhanuprakash Bodireddy To: dev@openvswitch.org Date: Fri, 21 Jul 2017 08:23:53 +0100 Message-Id: <1500621850-3818-3-git-send-email-bhanuprakash.bodireddy@intel.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1500621850-3818-1-git-send-email-bhanuprakash.bodireddy@intel.com> References: <1500621850-3818-1-git-send-email-bhanuprakash.bodireddy@intel.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v2 02/19] process: Avoid warnings compiling process.c X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org This commit fixes the following "sparse" warning: lib/process.c:439:16: error: use of assignment suppression and length modifier together in gnu_scanf format [-Werror=format=]. This fix doesn't need any other changes as the fields aren't used for now. Signed-off-by: Bhanuprakash Bodireddy --- lib/process.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/process.c b/lib/process.c index 3e119b5..0b8d195 100644 --- a/lib/process.c +++ b/lib/process.c @@ -444,24 +444,24 @@ get_raw_process_info(pid_t pid, struct raw_process_info *raw) "%llu " /* 22. start_time */ "%llu " /* 23. vsize */ "%llu " /* 24. rss */ + "%*u " /* (25. rsslim) */ + "%*u " /* (26. start_code) */ + "%*u " /* (27. end_code) */ + "%*u " /* (28. start_stack) */ + "%*u " /* (29. esp) */ + "%*u " /* (30. eip) */ + "%*u " /* (31. pending signals) */ + "%*u " /* (32. blocked signals) */ + "%*u " /* (33. ignored signals) */ + "%*u " /* (34. caught signals) */ + "%*u " /* (35. whcan) */ + "%*u " /* (36. always 0) */ + "%*u " /* (37. always 0) */ + "%*d " /* (38. exit_signal) */ + "%*d " /* (39. task_cpu) */ #if 0 /* These are here for documentation but #if'd out to save * actually parsing them from the stream for no benefit. */ - "%*lu " /* (25. rsslim) */ - "%*lu " /* (26. start_code) */ - "%*lu " /* (27. end_code) */ - "%*lu " /* (28. start_stack) */ - "%*lu " /* (29. esp) */ - "%*lu " /* (30. eip) */ - "%*lu " /* (31. pending signals) */ - "%*lu " /* (32. blocked signals) */ - "%*lu " /* (33. ignored signals) */ - "%*lu " /* (34. caught signals) */ - "%*lu " /* (35. whcan) */ - "%*lu " /* (36. always 0) */ - "%*lu " /* (37. always 0) */ - "%*d " /* (38. exit_signal) */ - "%*d " /* (39. task_cpu) */ "%*u " /* (40. rt_priority) */ "%*u " /* (41. policy) */ "%*llu " /* (42. blkio_ticks) */