Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp240149pxk; Thu, 24 Sep 2020 04:40:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgprg2voP9oBk7LbcOChfqRO8ToxjoCoWlMNfdSFbLm52K0JCPD0XKxeIm8946DTy2hShf X-Received: by 2002:a50:afc6:: with SMTP id h64mr577782edd.10.1600947654310; Thu, 24 Sep 2020 04:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600947654; cv=none; d=google.com; s=arc-20160816; b=nW0YuFpga2CY2iQtDDwauIGaf6dVtucIG1OtWHAtRCAHzBedywqsH+981hBaXwHo8C GzPEEQhGHnEImeF+4Qhd5d+fd8QxKiB09lpsxMC8q06nF1BmHnMZiEZaJfhN5NaYKEZO vXTnfhh63C7SmbKkwE/QfYuwRzodXuchixfBueH5BNmq5adWoWOmpIWuRcyjCvuO0A4o 5Wt4/EP7FwWww1L2mBqOISzUAFpBPmFVZaO9uULdxlN9Wz5XGeoHMf0exKfvqzcu5r0a 6o30ykhO5mwmJzoEXsEzs/JbkS7GzzbSLjEFfCDNMvNP4RJmGudsp5ZAeS4Bb21JcEDQ L/TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n2JY4y6G63c9t0dZmNJwSFHTZrY4FxV2DVKIqjOIpiI=; b=ZDJ/d4wQk2RaQMEf2KpezlpgyIu/5+2uJVhoiWsFAHQMq4Qo6xJe2VHuOalXpAW3UV iXibBDfia9F+DyQRt+zLR/SnWJIpfB3rx+j7HGRU6HBSwu/nchzWJmBcnJHxFBnGl6K5 Gq16cGSqvVhxFahN90NI5inn52w+JnCYb2U/iOoHReIeUqEZlfumPoJ85Nw+aiGfE4Ql 3GOR2TSdcuJ9iv9ZSFZLNtDBm73l+p7/SKNfmupG3kbOcUVZkck9SDVBa18hWtRHAHbN e2zvthhlG6/FdSoGbK7ZvVjPiZSpZVLhqCptd9hHuIbIBLYUMt6ST0VvRXShGffJLjDA n+uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="YV/LuNUt"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si1834998ejp.465.2020.09.24.04.40.30; Thu, 24 Sep 2020 04:40:54 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="YV/LuNUt"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727593AbgIXLjD (ORCPT + 99 others); Thu, 24 Sep 2020 07:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727489AbgIXLiz (ORCPT ); Thu, 24 Sep 2020 07:38:55 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53985C0613D4 for ; Thu, 24 Sep 2020 04:38:55 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id z1so3458823wrt.3 for ; Thu, 24 Sep 2020 04:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n2JY4y6G63c9t0dZmNJwSFHTZrY4FxV2DVKIqjOIpiI=; b=YV/LuNUt0fhJH2foObHfKzWfOfdhPYcWnA1rrHzNF/tpNmRW20GHjlxS9Gwp/xAlTg GtejR+sGat1PNHMYNwBwuUwPX7lPEF6VRJcTjcRX1EgW8oogvtvGe+McNgDqL7A7tgvQ /GHwQqTkVIEGPGPSh+K8Mct+6HMQYxZXfQIBDyvrYbAyQT/Y29j599IfFQQnV3tCK9z0 6Y2/Fhua2YmuIJLElVQ2ZRQaawki/ftrrJr7QkjCcylejdP8rbDd5TAfEpk5wRfYrto6 KKV24Uz+GUsAMMMhf6+xt02kgmPK8GYI6nE58n7h9ZH4VzhgML9PkDwnrRaYYA5SByxW lIPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n2JY4y6G63c9t0dZmNJwSFHTZrY4FxV2DVKIqjOIpiI=; b=le3FmYUkTIpmceMYIXsY1QuEbjhgPuUw0e/ohiu1ekzhR1QNldX57+oiYqVD6IqB8y r6IzqVS+gqgnL+bAWOn/b+WOE/nEgievjp+HBTIAesFGmCcJva/iX3rGQgXYShWV2YNB DvMocj2sKRpv8sFoHlVCPr3aXyp4jHa3ZB4RX21ZPEWXtZH9PRmDz6cGiuIq14ZZFijM KWSfT2wr12qL8/UPoTolEezbNY6h+ISfGEv7thxxORg6Kpx/vtzinwl5QkcbTnVeasZu fWEO2Xw1FZQwP93BSmg6O6a8uPlmXzG2qPRxlqnxgvWrXyTn/whVOs2UEhjyuTz5BLvP umSw== X-Gm-Message-State: AOAM531M6ZyGs34kxMm04pirtrVjUHx8OkrwKnYy7FZepB/Sdl84Tvvr kUk26tyDZG3iPoS9wwmSO7uh6w== X-Received: by 2002:adf:a29a:: with SMTP id s26mr4657115wra.197.1600947534010; Thu, 24 Sep 2020 04:38:54 -0700 (PDT) Received: from debian-brgl.home (lfbn-nic-1-68-20.w2-15.abo.wanadoo.fr. [2.15.159.20]) by smtp.gmail.com with ESMTPSA id y207sm3390133wmc.17.2020.09.24.04.38.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 04:38:53 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Jonathan Corbet , Andy Shevchenko , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 5/9] gpio: mockup: use pr_fmt() Date: Thu, 24 Sep 2020 13:38:38 +0200 Message-Id: <20200924113842.11670-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200924113842.11670-1-brgl@bgdev.pl> References: <20200924113842.11670-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski We don't need a custom logging helper. Let's use the standard pr_fmt() macro which allows us to use all pr_*() routines with custom format. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 90a1d6c2775f..c2b2f7d5ff34 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -7,6 +7,8 @@ * Copyright (C) 2017 Bartosz Golaszewski */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -30,8 +32,6 @@ /* Maximum of three properties + the sentinel. */ #define GPIO_MOCKUP_MAX_PROP 4 -#define gpio_mockup_err(...) pr_err(KBUILD_MODNAME ": " __VA_ARGS__) - /* * struct gpio_pin_status - structure describing a GPIO status * @dir: Configures direction of gpio as "in" or "out" @@ -548,7 +548,7 @@ static int __init gpio_mockup_init(void) err = platform_driver_register(&gpio_mockup_driver); if (err) { - gpio_mockup_err("error registering platform driver\n"); + pr_err("error registering platform driver\n"); debugfs_remove_recursive(gpio_mockup_dbg_dir); return err; } @@ -577,7 +577,7 @@ static int __init gpio_mockup_init(void) pdev = platform_device_register_full(&pdevinfo); if (IS_ERR(pdev)) { - gpio_mockup_err("error registering device"); + pr_err("error registering device"); platform_driver_unregister(&gpio_mockup_driver); gpio_mockup_unregister_pdevs(); debugfs_remove_recursive(gpio_mockup_dbg_dir); -- 2.26.1