Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3448551imm; Tue, 29 May 2018 07:26:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKN1L12WQMQY85oqqxBzcfTA5eXD6na+NLTSAaJVbRvIqOiymMHNNYtLJYOPsj8hnOe2SAK X-Received: by 2002:a65:6047:: with SMTP id b7-v6mr10458625pgv.241.1527604017032; Tue, 29 May 2018 07:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527604017; cv=none; d=google.com; s=arc-20160816; b=R2DGBBCX9bTz2Gde0yrCk6M+Hc6Eivr6Hu8jfUBXuwwwDd8kHxbRRqEUpTnmEHOb9K H1Gx53waHe4zW43oY8lBrZdZ2rq7qePb/+BDZmEWGVwYpWmOw+Dr+VqgBzbcE6gKWVyA 29FENZV9iny4aGMHvFPw31Zc9LE1bP4Lzru6vShEC/Z4QMSQAtuINsJd8/OhasBHQfyr KEB9ZqVyylw7jn/5PqLF49aGXZ/DFSecsg+LHsBBfoOC/jX4dnj8C7OApK0T3k4kF5Z/ FZnpFDNxiYHbx717ks2sywFOe+XDbekY8vTpg9z8iP8x8UT4zmwUO8AazYJ8HEzuJrZf u+UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=XZbTffT6kJ5jiIb1P9qVjnGKfwg+Sa0jaM3ZJ39KT0Q=; b=gIlMrc+it9e8YzDxGNPY9BsOC53iHbEXs9DdfBJJfn3jEUys+zsw8WbUHJ041oMqrV KeKmsLq7FV4Yc5bnfLA84odS6MZrLMwj5hJbBvUOymhILHtQmhyUXlLzAkK4xGhP4me7 jNqDuL7VAYe4dAjtUVNauyx1FvZr1TdsGMpsfKqd55cHFmyScSP0m6PS/bHq146H68NU /mk7YntylpwSt5R6G/Z+TbxSU5Tcv1Sojd+9n1uKpupDoIZ6ipXTY0SrKuoQennbpxZE FaXlqGkPEjFGjwhFG+pI3ZbY4FDJLE5Tdr7LuYSN4PYUjqkckZavCjMoKZYxhJxSXot7 BZdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5-v6si32947088pfi.96.2018.05.29.07.26.43; Tue, 29 May 2018 07:26:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935401AbeE2OYp (ORCPT + 99 others); Tue, 29 May 2018 10:24:45 -0400 Received: from smtp4.ccs.ornl.gov ([160.91.203.40]:38208 "EHLO smtp4.ccs.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935255AbeE2OWf (ORCPT ); Tue, 29 May 2018 10:22:35 -0400 Received: from star.ccs.ornl.gov (star.ccs.ornl.gov [160.91.202.134]) by smtp4.ccs.ornl.gov (Postfix) with ESMTP id 0206910052D3; Tue, 29 May 2018 10:22:07 -0400 (EDT) Received: by star.ccs.ornl.gov (Postfix, from userid 2004) id 00898BF; Tue, 29 May 2018 10:22:06 -0400 (EDT) From: James Simmons To: Greg Kroah-Hartman , devel@driverdev.osuosl.org, Andreas Dilger , Oleg Drokin , NeilBrown Cc: Linux Kernel Mailing List , Lustre Development List , Dmitry Eremin , James Simmons Subject: [PATCH v2 19/25] staging: lustre: libcfs: update debug messages Date: Tue, 29 May 2018 10:21:59 -0400 Message-Id: <1527603725-30560-20-git-send-email-jsimmons@infradead.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1527603725-30560-1-git-send-email-jsimmons@infradead.org> References: <1527603725-30560-1-git-send-email-jsimmons@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Eremin For cfs_cpt_bind() change the CERROR to CDEBUG. Make the debug message in cfs_cpt_table_create_pattern() more understandable. Report rc value for when cfs_cpt_create_table() fails. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https://review.whamcloud.com/23222 Reviewed-by: Amir Shehata Reviewed-by: James Simmons Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --- Changelog: v1) Initial patch v2) Rebased patch. No changes in code from earlier patch drivers/staging/lustre/lnet/libcfs/libcfs_cpu.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/libcfs_cpu.c b/drivers/staging/lustre/lnet/libcfs/libcfs_cpu.c index e12d337..7f1061e 100644 --- a/drivers/staging/lustre/lnet/libcfs/libcfs_cpu.c +++ b/drivers/staging/lustre/lnet/libcfs/libcfs_cpu.c @@ -480,7 +480,8 @@ void cfs_cpt_unset_cpu(struct cfs_cpt_table *cptab, int cpt, int cpu) /* caller doesn't know the partition ID */ cpt = cptab->ctb_cpu2cpt[cpu]; if (cpt < 0) { /* not set in this CPT-table */ - CDEBUG(D_INFO, "Try to unset cpu %d which is not in CPT-table %p\n", + CDEBUG(D_INFO, + "Try to unset cpu %d which is not in CPT-table %p\n", cpt, cptab); return; } @@ -506,7 +507,8 @@ int cfs_cpt_set_cpumask(struct cfs_cpt_table *cptab, int cpt, if (!cpumask_weight(mask) || cpumask_any_and(mask, cpu_online_mask) >= nr_cpu_ids) { - CDEBUG(D_INFO, "No online CPU is found in the CPU mask for CPU partition %d\n", + CDEBUG(D_INFO, + "No online CPU is found in the CPU mask for CPU partition %d\n", cpt); return 0; } @@ -683,7 +685,8 @@ int cfs_cpt_bind(struct cfs_cpt_table *cptab, int cpt) } if (cpumask_any_and(*cpumask, cpu_online_mask) >= nr_cpu_ids) { - CERROR("No online CPU found in CPU partition %d, did someone do CPU hotplug on system? You might need to reload Lustre modules to keep system working well.\n", + CDEBUG(D_INFO, + "No online CPU found in CPU partition %d, did someone do CPU hotplug on system? You might need to reload Lustre modules to keep system working well.\n", cpt); return -EINVAL; } @@ -914,8 +917,8 @@ static struct cfs_cpt_table *cfs_cpt_table_create(int ncpt) failed_mask: free_cpumask_var(node_mask); failed: - CERROR("Failed to setup CPU-partition-table with %d CPU-partitions, online HW nodes: %d, HW cpus: %d.\n", - ncpt, num_online_nodes(), num_online_cpus()); + CERROR("Failed (rc = %d) to setup CPU partition table with %d partitions, online HW NUMA nodes: %d, HW CPU cores: %d.\n", + rc, ncpt, num_online_nodes(), num_online_cpus()); if (cptab) cfs_cpt_table_free(cptab); @@ -1030,7 +1033,7 @@ static struct cfs_cpt_table *cfs_cpt_table_create_pattern(char *pattern) bracket = strchr(str, ']'); if (!bracket) { - CERROR("missing right bracket for cpt %d, %s\n", + CERROR("Missing right bracket for partition %d, %s\n", cpt, str); goto failed; } -- 1.8.3.1