Received: by 10.192.165.156 with SMTP id m28csp207748imm; Sun, 15 Apr 2018 21:12:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+dBdsReWl0bwMtyh2EL/U6YoZSg4lSc9fkqf+83Eld8LDGSHRyxtz9bKbD/n1dP/ftvthu X-Received: by 10.98.93.20 with SMTP id r20mr20150082pfb.53.1523851947385; Sun, 15 Apr 2018 21:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523851947; cv=none; d=google.com; s=arc-20160816; b=rGsbpwv2iEH9C4v4wmS22dM7ypSl9+65d+9PXZeXOv7LMOm5sgWRn84zyQqsGTvf3m VGB57oshBmn2W9VtvjwlMnIl8xiI/Y2MhY133HEF3vZJL6Bh9rQu/KJ0HbGJXxawgEhc y+Kae7ve65heM9E8kfBKNr4J/IhJnKvMoB6RHxb8swX0CLeKXdzjIcjLqy3I8V8Bkvfd /q3ZJWYtsFG5gHsqLXchyV15jw1jflM5YDhkP2CmFaSY5q7srYS6VgtCRFgqKFiO2WCp +lyCrBJibL2e1wcuROFRu/WWPgr6ns0QXO6fHN6cxfAIdkZnUwDBtftoaP3HiqPqPIQ1 laSg== 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=axZU6pFbNDlt3Z2mmHyD0+sPgDgwiQ6kbD0Qfx9nHmM=; b=ynYVWrCcaODjs+rD1Fl7yu664FPQ4+4Q5Zv7s+uwa5c38d9pb2miUIraqCegfYBFiQ yfFzbKVxNJiH7wHbZtFV+OtoLE+CpRu+2YXSWkfopuarUPgJ/2r9eSAwRpATPTi+zr0y eI5ZxOJEBnFF/WjEvCGAW98GRorrCce39yNQN6CS7ekg1nYy5DJdgqguCwi60idK64Iq Oq0VO1iOqXfSu87VkQoeWSpJ8GE+PdJQTw96NSRI52NhsUNKHp/hrSFwt1mKovTqnJAi SlrebNlnA9Lpfhiq1a0G3/lJAt+vshbM4lXY9E6TGNcfrI8/JzbOBfP3cIdS3/+PhGQd lN/A== 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 w71si10150129pfd.273.2018.04.15.21.12.13; Sun, 15 Apr 2018 21:12:27 -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 S1753180AbeDPEKc (ORCPT + 99 others); Mon, 16 Apr 2018 00:10:32 -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 S1753130AbeDPEK2 (ORCPT ); Mon, 16 Apr 2018 00:10:28 -0400 Received: from star.ccs.ornl.gov (star.ccs.ornl.gov [160.91.202.134]) by smtp3.ccs.ornl.gov (Postfix) with ESMTP id DAC5435C; Mon, 16 Apr 2018 00:10:11 -0400 (EDT) Received: by star.ccs.ornl.gov (Postfix, from userid 2004) id D943E1F3; 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 22/25] staging: lustre: libcfs: update debug messages in CPT code Date: Mon, 16 Apr 2018 00:10:04 -0400 Message-Id: <1523851807-16573-23-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 Update the debug messages for the CPT table creation code. Place the passed in string in quotes to make it clear what it is. Captialize cpu in the debug strings. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https://review.whamcloud.com/23306 Reviewed-by: James Simmons Reviewed-by: Andreas Dilger Reviewed-by: Patrick Farrell Reviewed-by: Olaf Weber Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c b/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c index 28b2acb..a08816a 100644 --- a/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c +++ b/drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c @@ -466,7 +466,7 @@ void cfs_cpt_unset_cpu(struct cfs_cpt_table *cptab, int cpt, int cpu) } else if (cpt != cptab->ctb_cpu2cpt[cpu]) { CDEBUG(D_INFO, - "CPU %d is not in cpu-partition %d\n", cpu, cpt); + "CPU %d is not in CPU partition %d\n", cpu, cpt); return; } @@ -910,14 +910,14 @@ static struct cfs_cpt_table *cfs_cpt_table_create_pattern(char *pattern) if (!ncpt || (node && ncpt > num_online_nodes()) || (!node && ncpt > num_online_cpus())) { - CERROR("Invalid pattern %s, or too many partitions %d\n", + CERROR("Invalid pattern '%s', or too many partitions %d\n", pattern, ncpt); return NULL; } cptab = cfs_cpt_table_alloc(ncpt); if (!cptab) { - CERROR("Failed to allocate cpu partition table\n"); + CERROR("Failed to allocate CPU partition table\n"); return NULL; } @@ -948,11 +948,11 @@ static struct cfs_cpt_table *cfs_cpt_table_create_pattern(char *pattern) if (!bracket) { if (*str) { - CERROR("Invalid pattern %s\n", str); + CERROR("Invalid pattern '%s'\n", str); goto failed; } if (c != ncpt) { - CERROR("expect %d partitions but found %d\n", + CERROR("Expect %d partitions but found %d\n", ncpt, c); goto failed; } @@ -960,7 +960,7 @@ static struct cfs_cpt_table *cfs_cpt_table_create_pattern(char *pattern) } if (sscanf(str, "%d%n", &cpt, &n) < 1) { - CERROR("Invalid cpu pattern %s\n", str); + CERROR("Invalid CPU pattern '%s'\n", str); goto failed; } @@ -977,20 +977,20 @@ static struct cfs_cpt_table *cfs_cpt_table_create_pattern(char *pattern) str = strim(str + n); if (str != bracket) { - CERROR("Invalid pattern %s\n", str); + CERROR("Invalid pattern '%s'\n", str); goto failed; } bracket = strchr(str, ']'); if (!bracket) { - CERROR("Missing right bracket for partition %d, %s\n", + CERROR("Missing right bracket for partition %d in '%s'\n", cpt, str); goto failed; } if (cfs_expr_list_parse(str, (bracket - str) + 1, 0, high, &el)) { - CERROR("Can't parse number range: %s\n", str); + CERROR("Can't parse number range in '%s'\n", str); goto failed; } -- 1.8.3.1