Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1345211imk; Mon, 4 Jul 2022 00:48:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1skqozVzhtK4siuE9JnB+rgDYe593cpVuTyoUyxcNkKTUI5qDotTYmdEInPr0lSDZzuIwOo X-Received: by 2002:a17:906:9be0:b0:72a:bb96:581 with SMTP id de32-20020a1709069be000b0072abb960581mr5776149ejc.681.1656920910476; Mon, 04 Jul 2022 00:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656920910; cv=none; d=google.com; s=arc-20160816; b=EsCqcCXecA1t81WHkmyh8GJX3RH+8eKQ2gARZ77cS0/xjI7XSbNQI3PJFXgAT7b7ad jQCbZtmH9FWoTCu/c2DWBQ1POVggEZ9h+vA5KZ9gKn2dc91b+kdmnVUPDiYclttqBORx WaRnkb4e+cZbrFSCOV2/dnKJEoDejUIVh6hlMVcc0UZteeC+Q89KeijeFTTvPEyfUmwi YsU7wipkYTphxE/RfC7TXJPQGUnL0Y9PmQZYBQcH/6iEgmxSmuFJDmD572eU0yvM/swf qj0aGbsz6+KAADHg+Gl4snChNi79hlwDYsV1eQZlKoNWTlqDvO5nZrdkgqO9+L5LKye3 sWbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=wtmYfY9LO/zpzW/PaJTVoTmYjFlbUOT2sFTtj6jLSGs=; b=bzmksxyzTtq6XCB4iEvRV8WQtg1GyeQtcL11GEiydCBjxWKOLFf8uFFXWIklw9qTFP e/upNcUI7fUc4qHgaLz0ynfDKvDGcs/QpcsBtHmnmdFV0XwRj2j1qSBQ26unpxFjH+dB fM4qH7L16x89V6QFrkI5irlpzcx4JsSSz/ovLT/en62Vd4DGRsJAY7oTK+UvMDN2SVnx n8ujph+X0E82LTmZPtsowdgEY1TD+P01koFtj2u3pkBTRAYAgxHNEqpUXcqhP8B8GBw2 xiu6qg//u6tWcW19Gzmbl1PREFB7x9zfKR5w/Ewv0GI8NY0Ko+Zvx0VeazKrJJRixfBD 2yJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd8-20020a170907628800b007156fc5217bsi15502056ejc.899.2022.07.04.00.48.05; Mon, 04 Jul 2022 00:48:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233489AbiGDHiO (ORCPT + 99 others); Mon, 4 Jul 2022 03:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232817AbiGDHiN (ORCPT ); Mon, 4 Jul 2022 03:38:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4B3ADC23; Mon, 4 Jul 2022 00:38:12 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3928F2B; Mon, 4 Jul 2022 00:38:12 -0700 (PDT) Received: from [192.168.33.14] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 671053F792; Mon, 4 Jul 2022 00:38:10 -0700 (PDT) Message-ID: <99526f90-f4c9-2785-f159-beace854b4a0@arm.com> Date: Mon, 4 Jul 2022 08:38:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v3 01/12] thermal/core: Remove duplicate information when an error occurs Content-Language: en-US To: Daniel Lezcano , daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, abailon@baylibre.com, Amit Kucheria , Zhang Rui , rafael@kernel.org References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> <20220703183059.4133659-2-daniel.lezcano@linexp.org> From: Lukasz Luba In-Reply-To: <20220703183059.4133659-2-daniel.lezcano@linexp.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/3/22 19:30, Daniel Lezcano wrote: > The pr_err already tells it is an error, it is pointless to add the > 'Error:' string in the messages. Remove them. > > Cc: Alexandre Bailon > Cc: Kevin Hilman > Cc; Eduardo Valentin > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/thermal_core.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c > index cdc0552e8c42..e22e7d939c54 100644 > --- a/drivers/thermal/thermal_core.c > +++ b/drivers/thermal/thermal_core.c > @@ -1198,23 +1198,23 @@ thermal_zone_device_register(const char *type, int trips, int mask, > struct thermal_governor *governor; > > if (!type || strlen(type) == 0) { > - pr_err("Error: No thermal zone type defined\n"); > + pr_err("No thermal zone type defined\n"); > return ERR_PTR(-EINVAL); > } > > if (type && strlen(type) >= THERMAL_NAME_LENGTH) { > - pr_err("Error: Thermal zone name (%s) too long, should be under %d chars\n", > + pr_err("Thermal zone name (%s) too long, should be under %d chars\n", > type, THERMAL_NAME_LENGTH); > return ERR_PTR(-EINVAL); > } > > if (trips > THERMAL_MAX_TRIPS || trips < 0 || mask >> trips) { > - pr_err("Error: Incorrect number of thermal trips\n"); > + pr_err("Incorrect number of thermal trips\n"); > return ERR_PTR(-EINVAL); > } > > if (!ops) { > - pr_err("Error: Thermal zone device ops not defined\n"); > + pr_err("Thermal zone device ops not defined\n"); > return ERR_PTR(-EINVAL); > } > Reviewed-by: Lukasz Luba