Message ID | 20170504114232.20318-4-marcandre.lureau@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> 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 6779560235 for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 4 May 2017 11:52:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AA4D2833C for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 4 May 2017 11:52:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F4652846A; Thu, 4 May 2017 11:52:21 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC4DD2833C for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 4 May 2017 11:52:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1d6FH0-0002Na-9f; Thu, 04 May 2017 11:50:18 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <marcandre.lureau@redhat.com>) id 1d6F9z-0001fz-9i for xen-devel@lists.xenproject.org; Thu, 04 May 2017 11:43:03 +0000 Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id 12/BD-02202-6C31B095; Thu, 04 May 2017 11:43:02 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRWlGSWpSXmKPExsVysWW7jO5RYe5 Ig+cLLC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oxbx1ayFRxirZi8ZTVbA+Mxli5GTg4hgdlM Ejdf5nUxcnCwCNhLnDtkBRJmFCiT2LXhHDOEXSpxfc9kJogSO4mztxm7GLmAOlczSvw/8xJsD JuAh8SfCVPYQGwRAUmJ312nwXqZBZ4zSnybDGYLC1hJHHtzkRFijqpE12x7EJNXwEFiY0caSA WngKPEjHMHmCAOc5C4/+kOI4jNKyAocXLmExaQcmYBdYn184QghstLNG+dDTZcQkBb4kL7IxY Iu49RYv4pxQmMwrOQdM9C6J6FpHsBI/MqRo3i1KKy1CJdI0O9pKLM9IyS3MTMHF1DA2O93NTi 4sT01JzEpGK95PzcTYzA0K5nYGDcwdiz1+8QoyQHk5Ior/or9kghvqT8lMqMxOKM+KLSnNTiQ 4wyHBxKEryJQtyRQoJFqempFWmZOcAog0lLcPAoifCqgaR5iwsSc4sz0yFSpxh1Oebc+/qeSY glLz8vVUqctwOkSACkKKM0D24ELOIvMcpKCfMyMjAwCPEUpBblZpagyr9iFOdgVBLmVQamDyG ezLwSuE2vgI5gAjqiWZYD5IiSRISUVAMj68m325zmGS94crf/6IKXVTOfJ306YnxtYujrdzG9 u8ynPDn8w1ExYfJ/d0Omj2enuz2R5xH9+/Gitc7D1/vWVNx3v7Jg6bkJpfo9/1f+/HBmZ8Ust lMbKye+dud47rrrwdu5hnw3g8wE2uaX8cvmPFBZpcFpk7Z3Ue3FDsu6znzD/U42gbcn/FFiKc 5INNRiLipOBAB6V1/b8wIAAA== X-Env-Sender: marcandre.lureau@redhat.com X-Msg-Ref: server-10.tower-31.messagelabs.com!1493898180!98052613!1 X-Originating-IP: [209.132.183.28] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMjA5LjEzMi4xODMuMjggPT4gNTQwNjQ=\n X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 47307 invoked from network); 4 May 2017 11:43:01 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-10.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 4 May 2017 11:43:01 -0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 038D94E339; Thu, 4 May 2017 11:43:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 038D94E339 DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 038D94E339 Received: from localhost (ovpn-117-244.ams2.redhat.com [10.36.117.244]) by smtp.corp.redhat.com (Postfix) with ESMTP id 279B480DEF; Thu, 4 May 2017 11:42:52 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com> To: qemu-devel@nongnu.org Date: Thu, 4 May 2017 15:42:14 +0400 Message-Id: <20170504114232.20318-4-marcandre.lureau@redhat.com> In-Reply-To: <20170504114232.20318-1-marcandre.lureau@redhat.com> References: <20170504114232.20318-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 04 May 2017 11:43:00 +0000 (UTC) X-Mailman-Approved-At: Thu, 04 May 2017 11:50:17 +0000 Cc: Anthony Perard <anthony.perard@citrix.com>, stefanha@gmail.com, Stefano Stabellini <sstabellini@kernel.org>, "open list:X86" <xen-devel@lists.xenproject.org>, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com> Subject: [Xen-devel] [PULL 03/21] xen: use a better chardev type check X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/xen/xen-common.c b/hw/xen/xen-common.c index ae76150e8a..a9055e9eba 100644 --- a/hw/xen/xen-common.c +++ b/hw/xen/xen-common.c @@ -38,7 +38,7 @@ static int store_dev_info(int domid, Chardev *cs, const char *string) int ret = -1; /* Only continue if we're talking to a pty. */ - if (strncmp(cs->filename, "pty:", 4)) { + if (!CHARDEV_IS_PTY(cs)) { return 0; } pts = cs->filename + 4;