Received: by 10.192.165.156 with SMTP id m28csp208356imm; Sun, 15 Apr 2018 21:13:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx49+DEoSVA6ZRvALuWlfYO9G1DT6Q8sXOEzKkZuQ/GaYQRG4DL2m5xFucpnGezimaYL5aes2 X-Received: by 10.98.93.20 with SMTP id r20mr20152329pfb.53.1523852009223; Sun, 15 Apr 2018 21:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523852009; cv=none; d=google.com; s=arc-20160816; b=mtcodY7pYkgyenWmsBFgl1/7PYV7oZQmh1Yf3/IrHOpJEWRZ9hqDL57OBNltU2BIPm 1tUAzZVfBltBLkrvf9dRUkrm7fqMK7TJwOLLlegY2gQHpyqaT9pZEQzhIlTABOReoqiH lKN+QWNALHnDGhj0IEu05u3drYY3HUmV5QAKkA7C8ZYC3cyLz/xTPLtQJxp0bvxq3/Sd pgVG7ZdaGxsdSgNJEC3ix/+TlgYZH9Tu9C6nB2FA+0odzqAx0AVtPByijANp4Me63H87 gTReQw4j9pUAUxI5Wqhquw4CAl5GNiT4Hcw08mRzt5zw7C/HgpQn//4V/6+fmjwCjVlR RK8w== 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=MKw+F3K+xClR55HWAKnk7yq58ybcAzMZ/5ovA0N1Uxs=; b=NvpO7hS0DJqp+XuMm7C3FiOvvQYA4tgLkRej7f+WEGtsceRUcfEurFbvBK9/vxV3Au HD97KbQMl9vfm+P+Raj2xmXKO874fbKQGZrMqxWHEePUZJQp/mP9KML28MEQ6nFk9mY0 INQRwXh/eXhlC4diaReKS6yDP1jbk/lfB6Cqry/GrsEc7IAds5RF3nKBb0BYwQtoX6uw 8BmPxxYcd20zq1zrdtrv0KH1M02oFjsr7+F+sJd3/VJkPhAwrNc/z/xS7NeJ688wAayV XzGLhx1NdzvuspwyXgzhX8cf9Fc9oKG6in+52tmXcrhyZOjZdBMcucz2prYScytP+2AU I9cw== 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 f15-v6si10957847plr.310.2018.04.15.21.13.15; Sun, 15 Apr 2018 21:13:29 -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 S1753326AbeDPELs (ORCPT + 99 others); Mon, 16 Apr 2018 00:11:48 -0400 Received: from smtp3.ccs.ornl.gov ([160.91.203.39]:36400 "EHLO smtp3.ccs.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752387AbeDPEK0 (ORCPT ); Mon, 16 Apr 2018 00:10:26 -0400 Received: from star.ccs.ornl.gov (star.ccs.ornl.gov [160.91.202.134]) by smtp3.ccs.ornl.gov (Postfix) with ESMTP id CE354359; Mon, 16 Apr 2018 00:10:11 -0400 (EDT) Received: by star.ccs.ornl.gov (Postfix, from userid 2004) id CBCF31F3; Mon, 16 Apr 2018 00:10:11 -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 19/25] staging: lustre: libcfs: update debug messages Date: Mon, 16 Apr 2018 00:10:01 -0400 Message-Id: <1523851807-16573-20-git-send-email-jsimmons@infradead.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1523851807-16573-1-git-send-email-jsimmons@infradead.org> References: <1523851807-16573-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 --- drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c b/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c index c4f53ab..32ebd0f 100644 --- a/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c +++ b/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c @@ -655,7 +655,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; } @@ -886,8 +887,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); @@ -1002,7 +1003,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