From patchwork Mon Oct 16 12:54:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 10008245 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1CCCB60235 for ; Mon, 16 Oct 2017 12:54:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3A3F28516 for ; Mon, 16 Oct 2017 12:54:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E84C22855D; Mon, 16 Oct 2017 12:54:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4225728516 for ; Mon, 16 Oct 2017 12:54:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752763AbdJPMys (ORCPT ); Mon, 16 Oct 2017 08:54:48 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:53670 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752546AbdJPMyq (ORCPT ); Mon, 16 Oct 2017 08:54:46 -0400 Received: by mail-lf0-f68.google.com with SMTP id l23so16869637lfk.10 for ; Mon, 16 Oct 2017 05:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n6r+WB8YFuLPeUoC+tPtqwe+ayazMMuhohSVeWnkFt4=; b=t7ZAfogFJPB2cDZhkcZsIMvrQr6vJPBWcXD6BsPbJ563l2tn6ZmGQB51TS1VAd8+Vk Nhxd+FyCqnFjP28wS60ivrn+HK/y+LQemnsHYbc3W65Gwtn8EAD3UhQz6JLHJ+dH4mPY s0ne1iyjKSxcDFGatLMXcqSTrM0XuxpqWVfsbW1L58HQ6opwhUE70Ltyvm9ElhV3BNSA wGH784sozROf7eDfK19nfBZB6aE8QjHklhQdfHVCzbRr4N/CZnED4vf/y7ODIQfmN9yD VsDi3xuw/jEG5F2jZJ95EBleKVHiSVpTK4TkAogrCykB8kNqZe+sb/EAqCUWFLZH9nXH XEAg== 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:mime-version :content-transfer-encoding; bh=n6r+WB8YFuLPeUoC+tPtqwe+ayazMMuhohSVeWnkFt4=; b=r84UA3lljlrq0iFTtwnMjUYEDzipV1VlYhAfNS5NGI4BFY3UkHoZS18IUrpPygi/Kc WQntHml5uMHtauULv70kd5+3t/rFCG+igkWOWtA0zy84eJqydSRcw4xaYu94occuWJhd v0VqYDH8i7mRyaSBhLqbc6j50MxWIFK16Dj6190WFy02p7bmQ07v6IbBwx8/TgvcUpvq A3NRajHHjQ7vwZf653TKwHSUKXjrAO5UO8cxutjoidFfTCZdjhzh6b7yOxSzUZiHB6Sd 6ejEg2DjHq9hAJVMb9IcQ4lq/8BoIbnmYzq1r8PKVpiyVns6uK29HcQo+TKTcv0mvCfv yIBw== X-Gm-Message-State: AMCzsaWaoW+piprQir4ot7jIw7s4xpLgwNpPBcYNuehPGcmi5L8yPanI If6nBcEL6nIlRPE4F8UIoRQAog== X-Google-Smtp-Source: ABhQp+TaI3j4ZQt8RW4p7XTuUY13WsK2G/UGcQUthrR7gGi0kCJ/Y3Qc2sM52tqVDhr92u+BO0XDDA== X-Received: by 10.25.209.149 with SMTP id i143mr3174613lfg.97.1508158484662; Mon, 16 Oct 2017 05:54:44 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id f126sm772066lff.52.2017.10.16.05.54.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 05:54:43 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , linux-wireless@vger.kernel.org Cc: Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH] bcma: use bcma_debug and pr_cont in MIPS driver Date: Mon, 16 Oct 2017 14:54:32 +0200 Message-Id: <20171016125432.11655-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rafał Miłecki Using bcma_debug gives a device-specific prefix for messages and pr_cont is a common helper for continuing a line. Signed-off-by: Rafał Miłecki Acked-By: Hauke Mehrtens --- drivers/bcma/driver_mips.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c index 89af807cf29c..5904ef1aa624 100644 --- a/drivers/bcma/driver_mips.c +++ b/drivers/bcma/driver_mips.c @@ -184,10 +184,11 @@ static void bcma_core_mips_print_irq(struct bcma_device *dev, unsigned int irq) { int i; static const char *irq_name[] = {"2(S)", "3", "4", "5", "6", "D", "I"}; - printk(KERN_DEBUG KBUILD_MODNAME ": core 0x%04x, irq :", dev->id.id); + + bcma_debug(dev->bus, "core 0x%04x, irq :", dev->id.id); for (i = 0; i <= 6; i++) - printk(" %s%s", irq_name[i], i == irq ? "*" : " "); - printk("\n"); + pr_cont(" %s%s", irq_name[i], i == irq ? "*" : " "); + pr_cont("\n"); } static void bcma_core_mips_dump_irq(struct bcma_bus *bus)