Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2472407imc; Tue, 12 Mar 2019 14:53:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHK1QowKroNJFHDml4nfrC+aFP57N4OoNnCjc74Of6ciddZFd0zgcDgyAg2agR04GmTh+6 X-Received: by 2002:a17:902:42a3:: with SMTP id h32mr39605239pld.253.1552427636110; Tue, 12 Mar 2019 14:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552427636; cv=none; d=google.com; s=arc-20160816; b=sqe4PKUtsw6LNP6cOXObMTrBllXqXIxmkc/gd6+cNloaPWDQPnRKbCpgQXLEsLTspd MSyQFoCZuD0/QPQ37zU4FAdsDS+MjZ8i0v5UCXHOHldCKRZK9i8EZYxqttBcNLnlb9CI z+bw+CJnRAAhHhDoWFXdkKg9i1nvelD7uyJc/0qFgx4M8sI/J2jC9YgDgai/1Ye3LqJr zq5JqYgdIcEdbhavZZbYXsDTTCGHikDaBTzUE/WYui0IMo1M+aA3LlPjvFmze45Z60w6 xu+ab0ZiYZHfNfDZJvxJVzpF+RGJB/5Xx2SVrs9j7yUmOtqTacJR1g4excLhSKrj7p6i PAIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=9VUhjiWm+WSrpkrkUt4pK+w24ovGg+ih8QzvQkZd6Z4=; b=Ykd2vNW/7Z1TTkiDhqDO3GhLtad/idk/G7pUxOV8Hl9HgN01t0ngCdAXbj3/GYuRrT vNmTVf48BSQLRIz63Glf1jiWiLEA/645Ws25AFZxdoJ4oSsjMMKPSN6ZR93OdKpjuWE6 DzAw/hPzWfTsL+XVoeWwUFwFMdhvT3V9Ct9KDas70opFsUTBDWHdm5HChVIMgQot0b0g 0W4/P9cGJOBzEpeHtBIZop6MM19Q94Jg3T2RbJPBq785Y+6ypxT5wtMWbc7+8wUthr9q ZXBkUCGoBZzkx5dMI/KwoiLEkXzSHjSjW3cG/Bs3iD+Ov/Twwa/FvwI1KUo0DEK8bheZ 2ucg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=UyIvSRzZ; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=EZjP9G27; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r82si8831468pfa.140.2019.03.12.14.53.39; Tue, 12 Mar 2019 14:53:56 -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=@fb.com header.s=facebook header.b=UyIvSRzZ; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=EZjP9G27; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbfCLVxM (ORCPT + 99 others); Tue, 12 Mar 2019 17:53:12 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:40702 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbfCLVxM (ORCPT ); Tue, 12 Mar 2019 17:53:12 -0400 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2CLppRt006255; Tue, 12 Mar 2019 14:52:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=9VUhjiWm+WSrpkrkUt4pK+w24ovGg+ih8QzvQkZd6Z4=; b=UyIvSRzZLH3UyMLEfrmniNCVasKQJsLaK4Tijb9+dn9mAdxbU5w9vuLZSVqH52Y6ukMT XqGSLSiON0H9+ODW6nC9aONobGWTs9o9SysGUd8ZBiZFTWacaWGRmuNj2OJYewrjjumw 5G7pJSB45Zrq2ZuI52kzbb8iSZR7BsCTlc4= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2r6hv58qcs-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 12 Mar 2019 14:52:38 -0700 Received: from prn-hub06.TheFacebook.com (2620:10d:c081:35::130) by prn-hub02.TheFacebook.com (2620:10d:c081:35::126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Tue, 12 Mar 2019 14:52:14 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5 via Frontend Transport; Tue, 12 Mar 2019 14:52:14 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9VUhjiWm+WSrpkrkUt4pK+w24ovGg+ih8QzvQkZd6Z4=; b=EZjP9G27HwZP+ziv1nHb07w5GsRpBrTscBxaO4gn8Zq7vpLjsciAMAnXZIowqgOmgMyaTFbTMRirfohlBpKzpINQ6MoauFtkmH2gaWRlt/1OjJPGAUwjKdv1wSOIB9vZe7csmYKeuyGiDcMwr6BK8sJeB1TxX8UjBBUFbwxb6ds= Received: from MWHPR15MB1264.namprd15.prod.outlook.com (10.175.3.14) by MWHPR15MB1518.namprd15.prod.outlook.com (10.173.235.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.19; Tue, 12 Mar 2019 21:52:13 +0000 Received: from MWHPR15MB1264.namprd15.prod.outlook.com ([fe80::cc6:7ec2:94ef:f8cb]) by MWHPR15MB1264.namprd15.prod.outlook.com ([fe80::cc6:7ec2:94ef:f8cb%9]) with mapi id 15.20.1709.011; Tue, 12 Mar 2019 21:52:13 +0000 From: Calvin Owens To: Petr Mladek CC: Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Jonathan Corbet , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Subject: Re: [PATCH 3/4] printk: Add consoles to a virtual "console" bus Thread-Topic: [PATCH 3/4] printk: Add consoles to a virtual "console" bus Thread-Index: AQHU0JGsczOzMag9pEqv+OoueTdNJKYGfPGAgAIdmoA= Date: Tue, 12 Mar 2019 21:52:13 +0000 Message-ID: <20190312215209.GD5982@Haydn> References: <087b13f7812b32cc7c3f9efea71c9bcf324dd031.1551486732.git.calvinowens@fb.com> <20190311133341.vqcagdo4e4vy6dfu@pathway.suse.cz> In-Reply-To: <20190311133341.vqcagdo4e4vy6dfu@pathway.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR02CA0011.namprd02.prod.outlook.com (2603:10b6:a02:ee::24) To MWHPR15MB1264.namprd15.prod.outlook.com (2603:10b6:320:24::14) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::ce7e] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7d0ea86b-4ec9-4499-6d76-08d6a734fc06 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:MWHPR15MB1518; x-ms-traffictypediagnostic: MWHPR15MB1518: x-microsoft-exchange-diagnostics: 1;MWHPR15MB1518;20:ab36sY16buxB/50T17tYXbjTQ8ugh0TbX+30Pjk5BTH7xMIM9Y5G3235ZLggbYUyNDmkd9WgFXINBdE9lBGs3lwyxcV9DTBJNA08HNu0tXOqZRrPFScyUQXS7MjziwwoFvQRp3OYzpgWYimqi0FlpsQYY45vhhC52BYQveXX+jQ= x-microsoft-antispam-prvs: x-forefront-prvs: 09749A275C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(346002)(136003)(396003)(376002)(366004)(39860400002)(43544003)(52314003)(54094003)(199004)(189003)(6116002)(256004)(14444005)(2906002)(33716001)(97736004)(316002)(105586002)(6916009)(33656002)(486006)(11346002)(81166006)(81156014)(54906003)(68736007)(8676002)(8936002)(305945005)(7736002)(86362001)(46003)(106356001)(25786009)(4326008)(476003)(6246003)(186003)(386003)(6486002)(6436002)(229853002)(6512007)(446003)(71200400001)(76176011)(52116002)(99286004)(53936002)(478600001)(14454004)(5660300002)(1076003)(102836004)(30864003)(71190400001)(9686003)(6506007);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR15MB1518;H:MWHPR15MB1264.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: HchsOCust9oksoH32Ozf/whxQ7qSovF6/BeP6MChnyEDQcBDx2/gK5j2PdS66UEGLoGkRf6Av1Araupr8hLIkXts68aUULW1DTtHuZf4XgLwD2vuYGR9jTr6cQ6t8/XzQLqy9BHiR7HwQXh2g7DJU9aUvoy/b2kL1MHyudiIqDn4GqKIL0R/upe04KIvudyaTRnZRgCHRh76F5xIyvbva2LCxtGzly67sYnnl5mwjh0sBARXgimTh3WJ73rWUHA588Ivnj9bLE+RAcClRVb4HqwNBuW8tjfHI0XxIAXMhX2lQVkG9HbeCFizRV2nxSw7Yd4qxC3lWTWeXqs4seD7D11efRd4dGThn8zulnTj0JSR3i3wVrI36JhVP2ZZAv7FaTScQR2I7jRK1PzKxq8OVhr2JKODdacSgCqPV3NxpSE= Content-Type: text/plain; charset="utf-8" Content-ID: <4E35AA08F662804C9E8ABC04CD088FD7@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 7d0ea86b-4ec9-4499-6d76-08d6a734fc06 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2019 21:52:13.2355 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR15MB1518 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-12_13:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uZGF5IDAzLzExIGF0IDE0OjMzICswMTAwLCBQZXRyIE1sYWRlayB3cm90ZToNCj4gT24g RnJpIDIwMTktMDMtMDEgMTY6NDg6MTksIENhbHZpbiBPd2VucyB3cm90ZToNCj4gPiBUaGlzIHBh dGNoIGVtYmVkcyBhIGRldmljZSBzdHJ1Y3QgaW4gdGhlIGNvbnNvbGUgc3RydWN0LCBhbmQgcmVn aXN0ZXJzDQo+ID4gdGhlbSBvbiBhICJjb25zb2xlIiBidXMgc28gd2UgY2FuIGV4cG9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