Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=jae.hyun.yoo@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SVS15VFLzDqWw for ; Thu, 27 Feb 2020 09:13:21 +1100 (AEDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2020 14:13:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,489,1574150400"; d="scan'208";a="317566891" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.147]) ([10.7.153.147]) by orsmga001.jf.intel.com with ESMTP; 26 Feb 2020 14:13:18 -0800 Subject: Re: [PATCH dev-5.4] hwmon: peci: change label strings to reflect natural numbers From: Jae Hyun Yoo To: Joel Stanley Cc: Andrew Jeffery , OpenBMC Maillist References: <20200211234950.4010-1-jae.hyun.yoo@linux.intel.com> <1564f185-93e8-9ad0-9bfa-16f2a9af814e@linux.intel.com> Message-ID: Date: Wed, 26 Feb 2020 14:13:18 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <1564f185-93e8-9ad0-9bfa-16f2a9af814e@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2020 22:13:22 -0000 On 2/26/2020 2:07 PM, Jae Hyun Yoo wrote: > Hi Joel, > > On 2/26/2020 1:54 PM, Joel Stanley wrote: >> On Tue, 11 Feb 2020 at 23:47, Jae Hyun Yoo >> wrote: >>> >>> This commit changes label strings to reflect user friendly natural >>> numbers like 'Core 1' instead of 'Core 0' and 'DIMM A1' instead of >>> 'DIMM A0'. >>> >>> Signed-off-by: Jae Hyun Yoo >>> --- >>>   drivers/hwmon/peci-cputemp.c  | 2 +- >>>   drivers/hwmon/peci-dimmtemp.c | 2 +- >>>   2 files changed, 2 insertions(+), 2 deletions(-) >>>   mode change 100644 => 100755 drivers/hwmon/peci-cputemp.c >>>   mode change 100644 => 100755 drivers/hwmon/peci-dimmtemp.c >> >> I don't think this was intended. >> >> I fixed it up for you, but please try to figure out what went wrong so >> it doesn't happen in the future. > > It happened while upstreaming it. I changed the static label string > table as a dynamic table to address review comments, and I missed > this mismatch. My bad. It'll be fixed in the next upstreaming spin. Oh, you pointed out the file mode '755'. Sorry, I changed my samba configuration so it'll not be happened again. Thanks :) Jae >>> >>> diff --git a/drivers/hwmon/peci-cputemp.c b/drivers/hwmon/peci-cputemp.c >>> old mode 100644 >>> new mode 100755 >>> index 78e442f433a7..b9fe91281d58 >>> --- a/drivers/hwmon/peci-cputemp.c >>> +++ b/drivers/hwmon/peci-cputemp.c >>> @@ -363,7 +363,7 @@ static int create_core_temp_label(struct >>> peci_cputemp *priv, int idx) >>>          if (!priv->coretemp_label[idx]) >>>                  return -ENOMEM; >>> >>> -       sprintf(priv->coretemp_label[idx], "Core %d", idx); >>> +       sprintf(priv->coretemp_label[idx], "Core %d", idx + 1); >>> >>>          return 0; >>>   } >>> diff --git a/drivers/hwmon/peci-dimmtemp.c >>> b/drivers/hwmon/peci-dimmtemp.c >>> old mode 100644 >>> new mode 100755 >>> index 8ceab08d06e1..45eabd2ec5c8 >>> --- a/drivers/hwmon/peci-dimmtemp.c >>> +++ b/drivers/hwmon/peci-dimmtemp.c >>> @@ -260,7 +260,7 @@ static int create_dimm_temp_label(struct >>> peci_dimmtemp *priv, int chan) >>>          rank = chan / priv->gen_info->dimm_idx_max; >>>          idx = chan % priv->gen_info->dimm_idx_max; >>> >>> -       sprintf(priv->dimmtemp_label[chan], "DIMM %c%d", 'A' + rank, >>> idx); >>> +       sprintf(priv->dimmtemp_label[chan], "DIMM %c%d", 'A' + rank, >>> idx + 1); >>> >>>          return 0; >>>   } >>> -- >>> 2.17.1 >>>