Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4243425ybg; Mon, 8 Jun 2020 02:54:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjYCQc5D8iYy/qRo9K5zXlQui/lIGhtJT+I9CtG/Q5dmnlTmQ8ANdrr7SFBRal6X0fDU31 X-Received: by 2002:a17:906:8488:: with SMTP id m8mr18895090ejx.236.1591610096309; Mon, 08 Jun 2020 02:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591610096; cv=none; d=google.com; s=arc-20160816; b=D8MJ6TEadu3PjeWZain29OPhWbY/q5etiMgfyu9Rk4uGqRVlW30/9hUhl/x3oOA0uh CeNCkzMq05z5fEu39720H0SdbsT9EOqgSv1U2xRqE0yMeoGyfgPoQKqb1yNYx8+vdc3M ukJdJEZSvnSn1y1LEMlGztkOMC9H+yRoRq8JRnTzhqyGuLDfC5rmZUCnOB6u0eoZv9kE han0goSIOYx7gwUxyPjiAH73dLqCdQF9l94r9bki4CJLgNd5lnyNKPcdwrtfggSA7aoA AoaOjecYGVJxFvYKdJDcH6s7/eNi9DvBmYWoYuPCjff7y7ZqoL559u9FUKAJEAJBC++A G30w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ln+PS6+oEhPpsvH72omTjMLQ2KCzCmXJlVrcsqrMLiM=; b=G3uNLhA+gSB4jqIymlV9Rd/kv/ROJUaRdk3PtaEMoE3BINQ+a8RdUa3uX0HSP86+YF 32ypzm1GWyEgou50UiqOlvmgF9pb0Cwl58aEcbTaC4tYTBEiUGauP6SfWllB83l8pbt2 VifnDQgfyH0SiTIbNc39b5Ubp1ASIzlUITWM/yGEiWUzXxl6YN5xSQmMJK8XIiTzhTkX 5qmX9YigIqM858/UtkhtrAYMsmATp954JOWmiRTaIS0twmrc1xhCa3/9RayRgcT1qKTV Zbrn5ZL9fsblpuh4fsZkcXrXQ3i0i4rCQzMOX02GNh+yOviMC0l4057kkL8nydIIosm/ o/nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="HWPp/s5i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ar22si8712260ejc.434.2020.06.08.02.54.33; Mon, 08 Jun 2020 02:54:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="HWPp/s5i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729264AbgFHJwn (ORCPT + 99 others); Mon, 8 Jun 2020 05:52:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:47800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729166AbgFHJwm (ORCPT ); Mon, 8 Jun 2020 05:52:42 -0400 Received: from ziggy.de (unknown [213.195.114.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5F69E2076A; Mon, 8 Jun 2020 09:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591609962; bh=MhdtjOT8vJ8wGIPgzA1MdSHTr2Zgs7Wy2HpBekbvcW4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HWPp/s5iTdm6L6KOm4utxCkrIPBYP/FLz3Ifj6gektVxSUtN/2Y3UMrmPYhpN52Uw stZsuCl0f/k+o7PKOo33jtDlao1WZ0zJg+ew0/gbRE3QvgOIkN2K1ruiyA6Stb/wgP WihbBiOaNQsv+9Xb43Z2v60Tx8KbywvBq2kyfY4I= From: matthias.bgg@kernel.org To: gregkh@linuxfoundation.org, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, gene.chen.richtek@gmail.com, lee.jones@linaro.org, matthias.bgg@kernel.org, Matthias Brugger Subject: [PATCH 2/2] drivers: base: Convert to printk alias functions Date: Mon, 8 Jun 2020 11:52:17 +0200 Message-Id: <20200608095217.21162-2-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608095217.21162-1-matthias.bgg@kernel.org> References: <20200608095217.21162-1-matthias.bgg@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger The file mixes printk calls together with calls to pr_*(). Covert to printk alias functions to unify the code. Signed-off-by: Matthias Brugger --- drivers/base/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 40fba959c140..aa3b3a226a02 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -164,12 +164,12 @@ int driver_register(struct device_driver *drv) if ((drv->bus->probe && drv->probe) || (drv->bus->remove && drv->remove) || (drv->bus->shutdown && drv->shutdown)) - printk(KERN_WARNING "Driver '%s' needs updating - please use " + pr_warn("Driver '%s' needs updating - please use " "bus_type methods\n", drv->name); other = driver_find(drv->name, drv->bus); if (other) { - printk(KERN_ERR "Error: Driver '%s' is already registered, " + pr_err("Error: Driver '%s' is already registered, " "aborting...\n", drv->name); return -EBUSY; } -- 2.26.2