Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2456644imd; Fri, 2 Nov 2018 11:43:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5d2w/94L+MI0QIS/Z1oMyf3sPc73CquEiVeyz73qrL535Jr3A6VwLYjZxwYSuDxI4O/OQCT X-Received: by 2002:a17:902:4381:: with SMTP id j1-v6mr12502372pld.59.1541184203527; Fri, 02 Nov 2018 11:43:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184203; cv=none; d=google.com; s=arc-20160816; b=oEKaiPDKE1ba498A/5eoWj3HpBVbagPdPtG6xErj1ZFrEYohX7Whjjo8dKQSJMBCki KClppzYHehLyEiUxsN3RwWP2pOhKFi6KvmVSY1dTPQ3kexCGFAhIKbrNQ9sX/Bs9or3q GIqa7fz7ovXgELojEQDsmIKuA4FtRSje+2tOsLDu/5tCXv/uVTmCzQ0yz2AwGU2HXYUI GSPOP5xj4L0yL/S1CjbTo1jB0XcnWrh2FL208G/bH2VXM/oYbx8ZiUmpK47XkKWb7CKz NEniCYLtxOmYBYI/t2ekZyJ6h0tk5gpkLG5/2x8Gteo1NiLqm+qNSmAm8NZG87j0YTwE BKQA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=faelkbuyxLkGXr4iOD0YrVCZrMdpVBibjQxdvSkDROc=; b=XR45/Qukn/e7bDKdeFu/ygviy1e5S984aGNaDlmmOHMCGpV6HlVPd5i8FWp8hyHKPK pDZih0QjsCZq20g7X7H5uS2nPBZpX5XsZ2JBkIouj2rkAzlw48CoEK0hcH1PR+dMYnRM qCrDou1SXWqWHGtepi9OIW0YqS4R/QkVADne7uRlbJ6gFSBBYXp++OZSU1Mkv8jxHTue kuLV2dTfStWMtqgfyAlVDPEqd8diWmysuv6FsqylLfh1aUkK2M5zAo/1EU5L5juHwFWB kyzIFg/tTc2AwSBd0pHGNEQm6ex+GizyDePhABtWYO6ke0ugHJt6oyqRGdAjsOLqUM3U RMSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P2tLJVUz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11-v6si4488297ply.404.2018.11.02.11.43.08; Fri, 02 Nov 2018 11:43:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P2tLJVUz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728928AbeKCDuN (ORCPT + 99 others); Fri, 2 Nov 2018 23:50:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:45186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728835AbeKCDuM (ORCPT ); Fri, 2 Nov 2018 23:50:12 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C72C2084D; Fri, 2 Nov 2018 18:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184120; bh=9cbaC3He9QnMqEo939Oj1g6JQD2L2ZksNF1sVBqxrT4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P2tLJVUzY6Hrb0A6iGO9jenrKdtbGRPhcxGUTT91cpKO/jCjhaobV1P/OdgSYyIc0 ur/N8b6WX/mCBZGy5DrOlKtLqubG/FjAflGAn1b8K7NxB4DRemqVCPtltMVGuL0a5k EBMGNOoYFlgOSZFzWk5TF+styv2BV/a3S2pCA68w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Maciej W. Rozycki" , "David S. Miller" , Sasha Levin Subject: [PATCH 4.18 061/150] declance: Fix continuation with the adapter identification message Date: Fri, 2 Nov 2018 19:33:43 +0100 Message-Id: <20181102182907.830146018@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit fe3a83af6a50199bf250fa331e94216912f79395 ] Fix a commit 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") regression with the `declance' driver, which caused the adapter identification message to be split between two lines, e.g.: declance.c: v0.011 by Linux MIPS DECstation task force tc6: PMAD-AA , addr = 08:00:2b:1b:2a:6a, irq = 14 tc6: registered as eth0. Address that properly, by printing identification with a single call, making the messages now look like: declance.c: v0.011 by Linux MIPS DECstation task force tc6: PMAD-AA, addr = 08:00:2b:1b:2a:6a, irq = 14 tc6: registered as eth0. Signed-off-by: Maciej W. Rozycki Fixes: 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/amd/declance.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/amd/declance.c b/drivers/net/ethernet/amd/declance.c index 116997a8b593..00332a1ea84b 100644 --- a/drivers/net/ethernet/amd/declance.c +++ b/drivers/net/ethernet/amd/declance.c @@ -1031,6 +1031,7 @@ static int dec_lance_probe(struct device *bdev, const int type) int i, ret; unsigned long esar_base; unsigned char *esar; + const char *desc; if (dec_lance_debug && version_printed++ == 0) printk(version); @@ -1216,19 +1217,20 @@ static int dec_lance_probe(struct device *bdev, const int type) */ switch (type) { case ASIC_LANCE: - printk("%s: IOASIC onboard LANCE", name); + desc = "IOASIC onboard LANCE"; break; case PMAD_LANCE: - printk("%s: PMAD-AA", name); + desc = "PMAD-AA"; break; case PMAX_LANCE: - printk("%s: PMAX onboard LANCE", name); + desc = "PMAX onboard LANCE"; break; } for (i = 0; i < 6; i++) dev->dev_addr[i] = esar[i * 4]; - printk(", addr = %pM, irq = %d\n", dev->dev_addr, dev->irq); + printk("%s: %s, addr = %pM, irq = %d\n", + name, desc, dev->dev_addr, dev->irq); dev->netdev_ops = &lance_netdev_ops; dev->watchdog_timeo = 5*HZ; -- 2.17.1